- Timestamp:
- Apr 4, 2010, 8:45:58 PM (15 years ago)
- Location:
- trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/languages_installed.php
r5496 r5642 67 67 $language['state'] = 'active'; 68 68 $language['deactivable'] = true; 69 69 70 70 if (count($languages->db_languages) <= 1) 71 71 { … … 84 84 $language['state'] = 'inactive'; 85 85 } 86 86 87 87 if ($language_id == $default_language) 88 88 { … … 92 92 else 93 93 { 94 $language['is_default'] = false; 94 95 array_push($tpl_languages, $language); 95 96 } -
trunk/admin/themes_installed.php
r5382 r5642 79 79 { 80 80 $fs_theme['deactivable'] = true; 81 81 82 82 if (count($db_theme_ids) <= 1) 83 83 { … … 85 85 $fs_theme['deactivate_tooltip'] = l10n('Impossible to deactivate this theme, you need at least one theme.'); 86 86 } 87 87 88 88 if ($theme_id == $default_theme) 89 89 { … … 93 93 else 94 94 { 95 $fs_theme['is_default'] = false; 95 96 array_push($active_themes, $fs_theme); 96 97 } … … 100 101 // is the theme "activable" ? 101 102 $fs_theme['activable'] = true; 102 103 103 104 $missing_parent = $themes->missing_parent_theme($theme_id); 104 105 if (isset($missing_parent)) 105 106 { 106 107 $fs_theme['activable'] = false; 107 108 108 109 $fs_theme['activate_tooltip'] = sprintf( 109 110 l10n('Impossible to activate this theme, the parent theme is missing: %s'), … … 116 117 117 118 $fs_theme['deletable'] = true; 118 119 119 120 if (count($children) > 0) 120 121 { 121 122 $fs_theme['deletable'] = false; 122 123 123 124 $fs_theme['delete_tooltip'] = sprintf( 124 125 l10n('Impossible to delete this theme. Other themes depends on it: %s'), … … 126 127 ); 127 128 } 128 129 129 130 array_push($inactive_themes, $fs_theme); 130 131 }
Note: See TracChangeset
for help on using the changeset viewer.