From: Brion Vibber Date: Fri, 11 Mar 2005 04:38:01 +0000 (+0000) Subject: * (bug 1643) Removal of the deletion, protection and unprotection checkboxes X-Git-Tag: 1.5.0alpha1~651 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=f02b52450d7929facaf9ea23486ad92a5397158c;p=lhc%2Fweb%2Fwiklou.git * (bug 1643) Removal of the deletion, protection and unprotection checkboxes patch by avar --- diff --git a/includes/Article.php b/includes/Article.php index a216fc9fd8..78ff2ab8db 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1216,8 +1216,7 @@ class Article { return; } - $confirm = $wgRequest->getBool( 'wpConfirmProtect' ) && - $wgRequest->wasPosted() && + $confirm = $wgRequest->wasPosted() && $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ); $moveonly = $wgRequest->getBool( 'wpMoveOnly' ); $reason = $wgRequest->getText( 'wpReasonProtect' ); @@ -1285,14 +1284,12 @@ class Article { $wgOut->setPageTitle( wfMsg( 'confirmunprotect' ) ); $wgOut->setSubtitle( wfMsg( 'unprotectsub', $sub ) ); $wgOut->addWikiText( wfMsg( 'confirmunprotecttext' ) ); - $check = htmlspecialchars( wfMsg( 'confirmunprotect' ) ); $protcom = htmlspecialchars( wfMsg( 'unprotectcomment' ) ); $formaction = $this->mTitle->escapeLocalURL( 'action=unprotect' . $par ); } else { $wgOut->setPageTitle( wfMsg( 'confirmprotect' ) ); $wgOut->setSubtitle( wfMsg( 'protectsub', $sub ) ); $wgOut->addWikiText( wfMsg( 'confirmprotecttext' ) ); - $check = htmlspecialchars( wfMsg( 'confirmprotect' ) ); $moveonly = htmlspecialchars( wfMsg( 'protectmoveonly' ) ); $protcom = htmlspecialchars( wfMsg( 'protectcomment' ) ); $formaction = $this->mTitle->escapeLocalURL( 'action=protect' . $par ); @@ -1314,15 +1311,7 @@ class Article {   - - - - - - - - - " ); + " ); if($moveonly != '') { $wgOut->AddHTML( " @@ -1361,8 +1350,7 @@ class Article { function delete() { global $wgUser, $wgOut, $wgMessageCache, $wgRequest; $fname = 'Article::delete'; - $confirm = $wgRequest->getBool( 'wpConfirm' ) && - $wgRequest->wasPosted() && + $confirm = $wgRequest->wasPosted() && $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ); $reason = $wgRequest->getText( 'wpReason' ); @@ -1484,7 +1472,6 @@ class Article { $formaction = $this->mTitle->escapeLocalURL( 'action=delete' . $par ); $confirm = htmlspecialchars( wfMsg( 'confirm' ) ); - $check = htmlspecialchars( wfMsg( 'confirmcheck' ) ); $delcom = htmlspecialchars( wfMsg( 'deletecomment' ) ); $token = htmlspecialchars( $wgUser->editToken() ); @@ -1502,14 +1489,6 @@ class Article {   - - - - - - - -   diff --git a/languages/Language.php b/languages/Language.php index 78289c5f97..dd38d22bf2 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1277,7 +1277,6 @@ or image along with all of its history from the database. Please confirm that you intend to do this, that you understand the consequences, and that you are doing this in accordance with [[Project:Policy]].", -'confirmcheck' => 'Yes, I really want to delete this.', 'actioncomplete' => 'Action complete', 'deletedtext' => "\"$1\" has been deleted. See $2 for a record of recent deletions.",