Skip to content
Snippets Groups Projects
Commit 0f329e72 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: MAIN_FORCETHEME was not working when user set its own theme

parent 4d298b18
No related branches found
No related tags found
No related merge requests found
......@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment