diff options
Diffstat (limited to 'includes/SpecialRevisiondelete.php')
-rw-r--r-- | includes/SpecialRevisiondelete.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/includes/SpecialRevisiondelete.php b/includes/SpecialRevisiondelete.php index afbb589c..fb5e9ec8 100644 --- a/includes/SpecialRevisiondelete.php +++ b/includes/SpecialRevisiondelete.php @@ -10,12 +10,11 @@ */ function wfSpecialRevisiondelete( $par = null ) { - global $wgOut, $wgRequest, $wgUser; + global $wgOut, $wgRequest; $target = $wgRequest->getVal( 'target' ); $oldid = $wgRequest->getIntArray( 'oldid' ); - $sk = $wgUser->getSkin(); $page = Title::newFromUrl( $target ); if( is_null( $page ) ) { @@ -89,7 +88,7 @@ class RevisionDeleteForm { $hidden[] = wfHidden( 'oldid[]', $revid ); } - $special = Title::makeTitle( NS_SPECIAL, 'Revisiondelete' ); + $special = SpecialPage::getTitleFor( 'Revisiondelete' ); $wgOut->addHtml( wfElement( 'form', array( 'method' => 'post', 'action' => $special->getLocalUrl( 'action=submit' ) ), @@ -156,7 +155,7 @@ class RevisionDeleteForm { function extractBitfield( $request ) { $bitfield = 0; foreach( $this->checks as $item ) { - list( $message, $name, $field ) = $item; + list( /* message */ , $name, $field ) = $item; if( $request->getCheck( $name ) ) { $bitfield |= $field; } @@ -167,7 +166,7 @@ class RevisionDeleteForm { function save( $bitfield, $reason ) { $dbw = wfGetDB( DB_MASTER ); $deleter = new RevisionDeleter( $dbw ); - $ok = $deleter->setVisibility( $this->revisions, $bitfield, $reason ); + $deleter->setVisibility( $this->revisions, $bitfield, $reason ); } } |