Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
plegall committed Jun 7, 2012
1 parent 8bb7543 commit 1808c59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/common.inc.php
Expand Up @@ -192,7 +192,11 @@ function sanitize_mysql_kv(&$v, $k)
}
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 );
}

Expand Down

0 comments on commit 1808c59

Please sign in to comment.