Changeset 25018 for trunk/admin/include/themes.class.php
- Timestamp:
- Oct 19, 2013, 7:43:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/themes.class.php
r23821 r25018 78 78 if (isset($missing_parent)) 79 79 { 80 array_push( 81 $errors, 82 sprintf( 83 l10n('Impossible to activate this theme, the parent theme is missing: %s'), 84 $missing_parent 85 ) 80 $errors[] = l10n( 81 'Impossible to activate this theme, the parent theme is missing: %s', 82 $missing_parent 86 83 ); 87 84 … … 94 91 and $conf['mobile_theme'] != $theme_id) 95 92 { 96 array_push($errors, l10n('You can activate only one mobile theme.'));93 $errors[] = l10n('You can activate only one mobile theme.'); 97 94 break; 98 95 } … … 135 132 if (count($this->db_themes_by_id) <= 1) 136 133 { 137 array_push( 138 $errors, 139 l10n('Impossible to deactivate this theme, you need at least one theme.') 140 ); 134 $errors[] = l10n('Impossible to deactivate this theme, you need at least one theme.'); 141 135 break; 142 136 } … … 191 185 if (!empty($crt_db_theme)) 192 186 { 193 array_push($errors, 'CANNOT DELETE - THEME IS INSTALLED');187 $errors[] = 'CANNOT DELETE - THEME IS INSTALLED'; 194 188 break; 195 189 } … … 203 197 if (count($children) > 0) 204 198 { 205 array_push( 206 $errors, 207 sprintf( 208 l10n('Impossible to delete this theme. Other themes depends on it: %s'), 209 implode(', ', $children) 210 ) 199 $errors[] = l10n( 200 'Impossible to delete this theme. Other themes depends on it: %s', 201 implode(', ', $children) 211 202 ); 212 203 break; … … 263 254 if (isset($test_child['parent']) and $test_child['parent'] == $theme_id) 264 255 { 265 array_push($children, $test_child['name']);256 $children[] = $test_child['name']; 266 257 } 267 258 } … … 323 314 while ($row = pwg_db_fetch_assoc($result)) 324 315 { 325 array_push($themes, $row);316 $themes[] = $row; 326 317 } 327 318 return $themes; … … 629 620 and !empty($old_files)) 630 621 { 631 array_push($old_files, 'obsolete.list');622 $old_files[] = 'obsolete.list'; 632 623 foreach($old_files as $old_file) 633 624 {
Note: See TracChangeset
for help on using the changeset viewer.