Improved language for static HTML page delete interface
authorDan
Sun, 06 Dec 2009 21:53:06 -0500
changeset 1149 be4feea8872a
parent 1148 dcf6e9394e02
child 1150 eb4a10b9b7aa
Improved language for static HTML page delete interface
index.php
language/english/core.json
--- a/index.php	Sun Dec 06 21:51:55 2009 -0500
+++ b/index.php	Sun Dec 06 21:53:06 2009 -0500
@@ -542,7 +542,7 @@
     $template->footer();
     break;
   case 'deletepage':
-    if(!$session->get_permissions('delete_page'))
+    if ( !$session->get_permissions('delete_page') )
     {
       die_friendly($lang->get('etc_access_denied_short'), '<p>' . $lang->get('etc_access_denied') . '</p>');
     }
@@ -551,8 +551,8 @@
       redirect(makeUrlNS('Special', "Login/{$paths->page}", 'target_do=deletepage&level=' . $session->user_level, false), $lang->get('etc_access_denied_short'), $lang->get('etc_access_denied_need_reauth'), 0);
     }
     
-    require_once(ENANO_ROOT.'/includes/pageutils.php');
-    if(isset($_POST['_adiossucker']))
+    require_once(ENANO_ROOT . '/includes/pageutils.php');
+    if ( isset($_POST['_adiossucker']) )
     {
       $reason = ( isset($_POST['reason']) ) ? $_POST['reason'] : false;
       if ( empty($reason) )
@@ -572,7 +572,7 @@
          <?php echo $lang->get('page_delete_warning_stern'); ?>
          <?php if ( isset($error) ) echo "<p>$error</p>"; ?>
          <p><?php echo $lang->get('page_delete_lbl_reason'); ?> <input type="text" name="reason" size="50" /></p>
-         <p><input type="submit" name="_adiossucker" value="<?php echo htmlspecialchars($lang->get('page_delete_btn_submit')); ?>" style="color: red; font-weight: bold;" /></p>
+         <p><input type="submit" name="_adiossucker" value="<?php echo htmlspecialchars($lang->get('page_delete_btn_submit')); ?>" style="font-weight: bold;" /></p>
       </form>
       <?php
     $template->footer();
--- a/language/english/core.json	Sun Dec 06 21:51:55 2009 -0500
+++ b/language/english/core.json	Sun Dec 06 21:53:06 2009 -0500
@@ -89,7 +89,7 @@
       delvote_btn_submit: 'Vote to delete this page',
       delvote_reset_btn_submit: 'Reset votes',
       
-      delete_warning_stern: '<h3>You are about to <span style="color: red;">destroy</span> this page.</h3><p>While the deletion of the page itself is completely reversible, it is impossible to recover any comments or category information on this page. If this is a file page, the file along with all older revisions of it will be permanently deleted. Also, any custom information that this page is tagged with, such as a custom name, protection status, or additional settings such as whether to allow comments, will be permanently lost.</p><p>Are you <u>absolutely sure</u> that you want to continue?<br />You will not be asked again.</p>',
+      delete_warning_stern: '<h3>Confirm page deletion</h3><p>The contents of the page will not be deleted; you will still be able to recover the page using the History feature.</p><p>Please be aware, however, that the following information is not recoverable:</p><ul><li>The list of categories this page belongs to</li><li>Every file revision associated with this page (if this page is in the File namespace)</li><li>Comments on this page</li></ul><p>To delete this page, enter a reason below, and then click Delete this Page.</p>',
       delete_err_need_reason: 'Please enter a reason for deleting this page.',
       delete_btn_submit: 'Delete this page',
       delete_lbl_reason: 'Reason for deleting:',