mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
bug 2649: broken code commited in r15587, fixed with a simpler condition
git-svn-id: http://piwigo.org/svn/trunk@15597 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user