Changeset 5259 for trunk/admin/include/themes.class.php
- Timestamp:
- Mar 22, 2010, 4:03:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/themes.class.php
r5258 r5259 81 81 break; 82 82 } 83 84 $missing_parent = $this->missing_parent_theme($theme_id); 85 if (isset($missing_parent)) 86 { 87 array_push( 88 $errors, 89 sprintf( 90 l10n('Impossible to activate this theme, the parent theme is missing: %s'), 91 $missing_parent 92 ) 93 ); 94 95 break; 96 } 83 97 84 98 $query = " … … 167 181 } 168 182 return $errors; 183 } 184 185 function missing_parent_theme($theme_id) 186 { 187 if (!isset($this->fs_themes[$theme_id]['parent'])) 188 { 189 return null; 190 } 191 192 $parent = $this->fs_themes[$theme_id]['parent']; 193 194 if ('default' == $parent) 195 { 196 return null; 197 } 198 199 if (!isset($this->fs_themes[$parent])) 200 { 201 return $parent; 202 } 203 204 return $this->missing_parent_theme($parent); 169 205 } 170 206
Note: See TracChangeset
for help on using the changeset viewer.