feature 2577: avoid errors if mobile theme was manually removed

git-svn-id: http://piwigo.org/svn/trunk@13460 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2012-03-02 16:17:15 +00:00
parent d4eaa2eacb
commit 0c9d78e4af
+4 -1
View File
@@ -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;