From: Alexandre Emsenhuber Date: Tue, 7 Apr 2009 17:09:23 +0000 (+0000) Subject: Follow-up r49280: use $this->getTitle() since this page extends SpecialPage :) X-Git-Tag: 1.31.0-rc.0~42198 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=84fc3ec755856bcb34d72278c1f0b735ee945d3a;p=lhc%2Fweb%2Fwiklou.git Follow-up r49280: use $this->getTitle() since this page extends SpecialPage :) --- diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index bf70c1d373..4df806d64e 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -349,10 +349,9 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { } else { $hidden[] = Xml::hidden( 'artimestamp', implode(',',$this->artimestamps) ); } - $special = SpecialPage::getTitleFor( 'Revisiondelete' ); $wgOut->addHTML( Xml::openElement( 'form', array( 'method' => 'post', - 'action' => $special->getLocalUrl( 'action=submit' ), + 'action' => $this->getTitle()->getLocalUrl( 'action=submit' ), 'id' => 'mw-revdel-form-revisions' ) ) . Xml::openElement( 'fieldset' ) . xml::element( 'legend', null, wfMsg( 'revdelete-legend' ) ) @@ -479,10 +478,9 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { } else { $hidden[] = Xml::hidden( 'fileid', implode(',',$this->fileids) ); } - $special = SpecialPage::getTitleFor( 'Revisiondelete' ); $wgOut->addHTML( Xml::openElement( 'form', array( 'method' => 'post', - 'action' => $special->getLocalUrl( 'action=submit' ), + 'action' => $this->getTitle()->getLocalUrl( 'action=submit' ), 'id' => 'mw-revdel-form-filerevisions' ) ) . Xml::fieldset( wfMsg( 'revdelete-legend' ) ) @@ -569,10 +567,9 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { Xml::hidden( 'logid', implode(',',$this->logids) ) ); - $special = SpecialPage::getTitleFor( 'Revisiondelete' ); $wgOut->addHTML( Xml::openElement( 'form', array( 'method' => 'post', - 'action' => $special->getLocalUrl( 'action=submit' ), 'id' => 'mw-revdel-form-logs' ) ) . + 'action' => $this->getTitle()->getLocalUrl( 'action=submit' ), 'id' => 'mw-revdel-form-logs' ) ) . Xml::fieldset( wfMsg( 'revdelete-legend' ) ) ); @@ -671,7 +668,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { if( !$file->userCan(File::DELETED_FILE) ) { $pageLink = $date; } else { - $pageLink = $this->skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Revisiondelete' ), $date, + $pageLink = $this->skin->makeKnownLinkObj( $this->getTitle(), $date, "target=$target&file=$file->sha1.".$file->getExtension() ); } $pageLink = '' . $pageLink . '';