mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: MAIN_FORCETHEME was not working when user set its own theme
This commit is contained in:
parent
4d298b1891
commit
0f329e72ef
|
|
@ -680,8 +680,8 @@ if (! defined('NOLOGIN'))
|
|||
if (isset($user->conf->MAIN_SIZE_LISTE_LIMIT)) $conf->liste_limit = $user->conf->MAIN_SIZE_LISTE_LIMIT; // Can be 0
|
||||
if (isset($user->conf->PRODUIT_LIMIT_SIZE)) $conf->product->limit_size = $user->conf->PRODUIT_LIMIT_SIZE; // Can be 0
|
||||
|
||||
// Replace conf->css by personalized value
|
||||
if (isset($user->conf->MAIN_THEME) && $user->conf->MAIN_THEME)
|
||||
// Replace conf->css by personalized value if theme not forced
|
||||
if (empty($conf->global->MAIN_FORCETHEME) && ! empty($user->conf->MAIN_THEME))
|
||||
{
|
||||
$conf->theme=$user->conf->MAIN_THEME;
|
||||
$conf->css = "/theme/".$conf->theme."/style.css.php";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user