mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 09:43:01 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user