Skip to content

Commit

Permalink
bug 2649 fixed: do not load mobile theme when using web API
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@15587 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Jun 7, 2012
1 parent 1e4bc8d commit 28e722f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/common.inc.php
Expand Up @@ -192,7 +192,7 @@ function sanitize_mysql_kv(&$v, $k)
}
else
{ // Classic template
$theme = mobile_theme() ? $conf['mobile_theme'] : $user['theme'];
$theme = script_basename() != 'ws' and mobile_theme() ? $conf['mobile_theme'] : $user['theme'];
$template = new Template(PHPWG_ROOT_PATH.'themes', $theme );
}

Expand Down

0 comments on commit 28e722f

Please sign in to comment.