Changeset 25018 for trunk/plugins/LocalFilesEditor/include/tpl.inc.php
- Timestamp:
- Oct 19, 2013, 7:43:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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']))
Note: See TracChangeset
for help on using the changeset viewer.