aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-06-07 13:20:00 +0000
committerplegall <plg@piwigo.org>2012-06-07 13:20:00 +0000
commit28e722f27cd0e0b4a0a4d96f6abe1f3ac8cdc36b (patch)
treea2c781ff90b52fa96b9259a8e256f69998039092
parent1e4bc8d5d66d9a8a67c582c87a30bc855dd126a7 (diff)
bug 2649 fixed: do not load mobile theme when using web API
git-svn-id: http://piwigo.org/svn/trunk@15587 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/common.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 378b9b4e0..0fa06f679 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -192,7 +192,7 @@ if (defined('IN_ADMIN') and IN_ADMIN )
}
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 );
}