Ignore:
Timestamp:
Mar 2, 2012, 5:17:15 PM (12 years ago)
Author:
plg
Message:

feature 2577: avoid errors if mobile theme was manually removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/themes.class.php

    r13172 r13460  
    8989        }
    9090
    91         if ($this->fs_themes[$theme_id]['mobile'] and !empty($conf['mobile_theme']))
     91
     92        if ($this->fs_themes[$theme_id]['mobile']
     93            and !empty($conf['mobile_theme'])
     94            and $conf['mobile_theme'] != $theme_id)
    9295        {
    9396          array_push($errors, l10n('You can activate only one mobile theme.'));
Note: See TracChangeset for help on using the changeset viewer.