# HG changeset patch # User Dan # Date 1260154386 18000 # Node ID be4feea8872a01289d77c8d592df123d1d90bf1b # Parent dcf6e9394e0295ffa599f623806ec079e06fdfef Improved language for static HTML page delete interface diff -r dcf6e9394e02 -r be4feea8872a index.php --- 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'), '

' . $lang->get('etc_access_denied') . '

'); } @@ -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 @@ get('page_delete_warning_stern'); ?> $error

"; ?>

get('page_delete_lbl_reason'); ?>

-

+

footer(); diff -r dcf6e9394e02 -r be4feea8872a language/english/core.json --- 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: '

You are about to destroy this page.

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.

Are you absolutely sure that you want to continue?
You will not be asked again.

', + delete_warning_stern: '

Confirm page deletion

The contents of the page will not be deleted; you will still be able to recover the page using the History feature.

Please be aware, however, that the following information is not recoverable:

To delete this page, enter a reason below, and then click Delete this Page.

', delete_err_need_reason: 'Please enter a reason for deleting this page.', delete_btn_submit: 'Delete this page', delete_lbl_reason: 'Reason for deleting:',