Skip to content

Commit

Permalink
feature 2577: avoid errors if mobile theme was manually removed
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@13460 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Mar 2, 2012
1 parent d4eaa2e commit 0c9d78e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion admin/include/themes.class.php
Expand Up @@ -88,7 +88,10 @@ function perform_action($action, $theme_id)
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;
Expand Down

0 comments on commit 0c9d78e

Please sign in to comment.