From 0c9d78e4af00b78374d49593d2617d0480189664 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 2 Mar 2012 16:17:15 +0000 Subject: feature 2577: avoid errors if mobile theme was manually removed git-svn-id: http://piwigo.org/svn/trunk@13460 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/themes.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'admin/include/themes.class.php') diff --git a/admin/include/themes.class.php b/admin/include/themes.class.php index 505785b73..dd783d7aa 100644 --- a/admin/include/themes.class.php +++ b/admin/include/themes.class.php @@ -88,7 +88,10 @@ class themes break; } - if ($this->fs_themes[$theme_id]['mobile'] and !empty($conf['mobile_theme'])) + + if ($this->fs_themes[$theme_id]['mobile'] + and !empty($conf['mobile_theme']) + and $conf['mobile_theme'] != $theme_id) { array_push($errors, l10n('You can activate only one mobile theme.')); break; -- cgit v1.2.3