aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/common.inc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 0fa06f679..49a46028c 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -192,7 +192,11 @@ if (defined('IN_ADMIN') and IN_ADMIN )
}
else
{ // Classic template
- $theme = script_basename() != 'ws' and mobile_theme() ? $conf['mobile_theme'] : $user['theme'];
+ $theme = $user['theme'];
+ if (script_basename() != 'ws' and mobile_theme())
+ {
+ $theme = $conf['mobile_theme'];
+ }
$template = new Template(PHPWG_ROOT_PATH.'themes', $theme );
}