Changeset 25018 for trunk/admin/plugins_new.php
- Timestamp:
- Oct 19, 2013, 7:43:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/plugins_new.php
r25005 r25018 40 40 if (!is_webmaster()) 41 41 { 42 array_push($page['errors'], l10n('Webmaster status is required.'));42 $page['errors'][] = l10n('Webmaster status is required.'); 43 43 } 44 44 else … … 58 58 { 59 59 case 'ok': 60 array_push($page['infos'], 61 l10n('Plugin has been successfully copied'), 62 l10n('You might go to plugin list to install and activate it.')); 60 $page['infos'][] = l10n('Plugin has been successfully copied'); 61 $page['infos'][] = l10n('You might go to plugin list to install and activate it.'); 63 62 break; 64 63 65 64 case 'temp_path_error': 66 array_push($page['errors'], l10n('Can\'t create temporary file.'));65 $page['errors'][] = l10n('Can\'t create temporary file.'); 67 66 break; 68 67 69 68 case 'dl_archive_error': 70 array_push($page['errors'], l10n('Can\'t download archive.'));69 $page['errors'][] = l10n('Can\'t download archive.'); 71 70 break; 72 71 73 72 case 'archive_error': 74 array_push($page['errors'], l10n('Can\'t read or extract archive.'));73 $page['errors'][] = l10n('Can\'t read or extract archive.'); 75 74 break; 76 75 77 76 default: 78 array_push($page['errors'], 79 l10n('An error occured during extraction (%s).', htmlspecialchars($_GET['installstatus'])), 80 l10n('Please check "plugins" folder and sub-folders permissions (CHMOD).')); 77 $page['errors'][] = l10n('An error occured during extraction (%s).', htmlspecialchars($_GET['installstatus'])); 78 $page['errors'][] = l10n('Please check "plugins" folder and sub-folders permissions (CHMOD).'); 81 79 } 82 80 } … … 136 134 else 137 135 { 138 array_push($page['errors'], l10n('Can\'t connect to server.'));136 $page['errors'][] = l10n('Can\'t connect to server.'); 139 137 } 140 138
Note: See TracChangeset
for help on using the changeset viewer.