Changeset 25018 for trunk/plugins/LocalFilesEditor/admin.php
- Timestamp:
- Oct 19, 2013, 7:43:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/LocalFilesEditor/admin.php
r25005 r25018 57 57 { 58 58 $content_file = file_get_contents(get_bak_file($edited_file)); 59 array_push($page['infos'], 60 l10n('locfiledit_bak_loaded1'), 61 l10n('locfiledit_bak_loaded2')); 59 $page['infos'][] = l10n('locfiledit_bak_loaded1'), 60 $page['infos'][] = l10n('locfiledit_bak_loaded2'); 62 61 } 63 62 … … 71 70 if (!is_webmaster()) 72 71 { 73 array_push($page['errors'], l10n('locfiledit_webmaster_only'));72 $page['errors'][] = l10n('locfiledit_webmaster_only'); 74 73 } 75 74 else … … 82 81 if ($content_file === false) 83 82 { 84 array_push($page['errors'], l10n('locfiledit_syntax_error'));83 $page['errors'][] = l10n('locfiledit_syntax_error'); 85 84 } 86 85 else … … 93 92 { 94 93 @copy($edited_file, get_bak_file($edited_file)); 95 array_push($page['infos'], l10n('locfiledit_saved_bak', substr(get_bak_file($edited_file), 2)));94 $page['infos'][] = l10n('locfiledit_saved_bak', substr(get_bak_file($edited_file), 2)); 96 95 } 97 96 … … 105 104 else 106 105 { 107 array_push($page['errors'], l10n('locfiledit_cant_save'));106 $page['errors'][] = l10n('locfiledit_cant_save'); 108 107 } 109 108 }
Note: See TracChangeset
for help on using the changeset viewer.