From 59d2c0ff93910a36e17a6f535ac78e7477122f3e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Thu, 2 Aug 2007 19:07:50 +0000 Subject: [PATCH] Permet de forcer style depuis url --- htdocs/main.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 130e9fa410c..db3585405da 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -487,6 +487,12 @@ if (isset($user->conf->MAIN_THEME) && $user->conf->MAIN_THEME) $conf->theme=$user->conf->MAIN_THEME; $conf->css = "theme/".$conf->theme."/".$conf->theme.".css"; } +// Cas de forcage du style depuis url +if (isset($_GET["theme"]) && $_GET["theme"]) +{ + $conf->theme=$_GET["theme"]; + $conf->css = "theme/".$conf->theme."/".$conf->theme.".css"; +} // Si feuille de style en php existe if (file_exists(DOL_DOCUMENT_ROOT.'/'.$conf->css.".php")) $conf->css.=".php"; -- GitLab