Changeset 2663:8dd9be9b33c1 for plugins/themeEditor/index.php
- Timestamp:
- 02/14/14 22:05:36 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/themeEditor/index.php
r2566 r2663 52 52 $o->writeFile($file['type'],$file['f'],$file['c']); 53 53 } 54 55 # Delete file 56 if (!empty($_POST['delete'])) 57 { 58 $o->deleteFile($file['type'],$file['f']); 59 dcPage::addSuccessNotice(__('The file has been deleted.')); 60 http::redirect($p_url.'&'.$file['type'].'='.$file['f']); 61 } 54 62 } 55 63 catch (Exception $e) … … 68 76 <?php echo dcPage::jsVar('dotclear.msg.document_saved',__("Document saved")); ?> 69 77 <?php echo dcPage::jsVar('dotclear.msg.error_occurred',__("An error occurred:")); ?> 78 <?php echo dcPage::jsVar('dotclear.msg.confirm_reset_file',__("Are you sure you want to reset this file?")); ?> 70 79 <?php echo dcPage::jsVar('dotclear.colorsyntax',$user_ui_colorsyntax); ?> 71 80 //]]> … … 122 131 echo 123 132 '<p><input type="submit" name="write" value="'.__('Save').' (s)" accesskey="s" /> '. 133 ($o->deletableFile($file['type'],$file['f']) ? '<input type="submit" name="delete" class="delete" value="'.__('Reset').'" />' : ''). 124 134 $core->formNonce(). 125 135 ($file['type'] ? form::hidden(array($file['type']),$file['f']) : '').
Note: See TracChangeset
for help on using the changeset viewer.