Ignore:
Timestamp:
Jul 7, 2014, 1:16:48 PM (10 years ago)
Author:
mistic100
Message:

bug 3075: Prevent deactivate default theme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes_installed.php

    r28587 r28989  
    9292  {
    9393    $tpl_theme['STATE'] = 'active';
     94    $tpl_theme['IS_DEFAULT'] = ($theme_id == $default_theme);
    9495    $tpl_theme['DEACTIVABLE'] = true;
    9596
     
    99100      $tpl_theme['DEACTIVATE_TOOLTIP'] = l10n('Impossible to deactivate this theme, you need at least one theme.');
    100101    }
    101    
    102     $tpl_theme['IS_DEFAULT'] = ($theme_id == $default_theme);
     102    if ($tpl_theme['IS_DEFAULT'])
     103    {
     104      $tpl_theme['DEACTIVABLE'] = false;
     105      $tpl_theme['DEACTIVATE_TOOLTIP'] = l10n('Impossible to deactivate the default theme.');
     106    }
    103107  }
    104108  else
Note: See TracChangeset for help on using the changeset viewer.