Changeset 28989


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

bug 3075: Prevent deactivate default theme

Location:
trunk
Files:
3 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
  • trunk/language/en_UK/admin.lang.php

    r28980 r28989  
    415415$lang['Impossible automatic correction'] = "Automatic correction impossible";
    416416$lang['Impossible to activate this theme, the parent theme is missing: %s'] = 'This theme could not be activated, as the parent theme is missing: %s';
     417$lang['Impossible to deactivate the default theme.'] = 'Impossible to deactivate the default theme.';
    417418$lang['Impossible to deactivate this language, first set another language as default.'] = 'Impossible to deactivate this language, first set another language as default.';
    418419$lang['Impossible to deactivate this language, you need at least one language.'] = 'Impossible to deactivate this language, you need at least one language.';
  • trunk/language/fr_FR/admin.lang.php

    r28980 r28989  
    976976$lang['Activate it now'] = 'Activate it now';
    977977$lang['Allow users to add a link to their website'] = 'Autoriser les utilisateurs à donner un lien vers leur site web';
     978$lang['Impossible to deactivate the default theme.'] = 'Impossible de désactiver le thème par défaut.';
    978979?>
Note: See TracChangeset for help on using the changeset viewer.