diff options
author | plegall <plg@piwigo.org> | 2012-03-02 16:17:15 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2012-03-02 16:17:15 +0000 |
commit | 0c9d78e4af00b78374d49593d2617d0480189664 (patch) | |
tree | 9d82c35b6f881e15678968d44e01a39b3cfd8e59 /admin | |
parent | d4eaa2eacb144609ab782f3ac7cf1ece6e05c749 (diff) |
feature 2577: avoid errors if mobile theme was manually removed
git-svn-id: http://piwigo.org/svn/trunk@13460 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/include/themes.class.php | 5 |
1 files changed, 4 insertions, 1 deletions
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; |