From 28e722f27cd0e0b4a0a4d96f6abe1f3ac8cdc36b Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 7 Jun 2012 13:20:00 +0000 Subject: 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 --- include/common.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 ); } -- cgit v1.2.3