Changeset 25018 for trunk/plugins
- Timestamp:
- Oct 19, 2013, 7:43:04 PM (11 years ago)
- Location:
- trunk/plugins/LocalFilesEditor
- Files:
-
- 4 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 } -
trunk/plugins/LocalFilesEditor/include/css.inc.php
r20714 r25018 65 65 foreach ($db_themes as $db_theme) 66 66 { 67 array_push($db_theme_ids, $db_theme['id']);67 $db_theme_ids[] = $db_theme['id']; 68 68 } 69 69 … … 86 86 else 87 87 { 88 array_push($active_themes, $fs_theme);88 $active_themes[] = $fs_theme; 89 89 } 90 90 } 91 91 else 92 92 { 93 array_push($inactive_themes, $fs_theme);93 $inactive_themes[] = $fs_theme; 94 94 } 95 95 } -
trunk/plugins/LocalFilesEditor/include/tpl.inc.php
r20714 r25018 40 40 if (empty($filename)) 41 41 { 42 array_push($page['errors'], l10n('locfiledit_empty_filename'));42 $page['errors'][] = l10n('locfiledit_empty_filename'); 43 43 } 44 44 if (get_extension($filename) != 'tpl') … … 48 48 if (!preg_match('/^[a-zA-Z0-9-_.]+$/', $filename)) 49 49 { 50 array_push($page['errors'], l10n('locfiledit_filename_error'));50 $page['errors'][] = l10n('locfiledit_filename_error'); 51 51 } 52 52 if (is_numeric($_POST['tpl_model']) and $_POST['tpl_model'] != '0') 53 53 { 54 array_push($page['errors'], l10n('locfiledit_model_error'));54 $page['errors'][] = l10n('locfiledit_model_error'); 55 55 } 56 56 if (file_exists($_POST['tpl_parent'] . '/' . $filename)) 57 57 { 58 array_push($page['errors'], l10n('locfiledit_file_already_exists'));58 $page['errors'][] = l10n('locfiledit_file_already_exists'); 59 59 } 60 60 if (!empty($page['errors'])) -
trunk/plugins/LocalFilesEditor/main.inc.php
r24926 r25018 36 36 function localfiles_admin_menu($menu) 37 37 { 38 array_push( 39 $menu, 40 array( 41 'NAME' => 'LocalFiles Editor', 42 'URL' => get_root_url().'admin.php?page=plugin-'.basename(dirname(__FILE__)) 43 ) 38 $menu[] = array( 39 'NAME' => 'LocalFiles Editor', 40 'URL' => get_root_url().'admin.php?page=plugin-'.basename(dirname(__FILE__)) 44 41 ); 45 42
Note: See TracChangeset
for help on using the changeset viewer.