diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
commit | 222b01f5169f1c7e69762e0e8904c24f78f71882 (patch) | |
tree | 8e932e12546bb991357ec48eb1638d1770be7a35 /includes/specials/SpecialMergeHistory.php | |
parent | 00ab76a6b686e98a914afc1975812d2b1aaa7016 (diff) |
update to MediaWiki 1.16.0
Diffstat (limited to 'includes/specials/SpecialMergeHistory.php')
-rw-r--r-- | includes/specials/SpecialMergeHistory.php | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/includes/specials/SpecialMergeHistory.php b/includes/specials/SpecialMergeHistory.php index c51ce7c3..1b4ef30c 100644 --- a/includes/specials/SpecialMergeHistory.php +++ b/includes/specials/SpecialMergeHistory.php @@ -67,7 +67,7 @@ class MergehistoryForm { } function execute() { - global $wgOut, $wgUser; + global $wgOut; $wgOut->setPagetitle( wfMsgHtml( "mergehistory" ) ); @@ -155,7 +155,7 @@ class MergehistoryForm { $haveRevisions = $revisions && $revisions->getNumRows() > 0; $titleObj = SpecialPage::getTitleFor( "Mergehistory" ); - $action = $titleObj->getLocalURL( "action=submit" ); + $action = $titleObj->getLocalURL( array( 'action' => 'submit' ) ); # Start the form here $top = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $action, 'id' => 'merge' ) ); $wgOut->addHTML( $top ); @@ -218,7 +218,7 @@ class MergehistoryForm { } function formatRevisionRow( $row ) { - global $wgUser, $wgLang; + global $wgLang; $rev = new Revision( $row ); @@ -228,8 +228,12 @@ class MergehistoryForm { $ts = wfTimestamp( TS_MW, $row->rev_timestamp ); $checkBox = Xml::radio( "mergepoint", $ts, false ); - $pageLink = $this->sk->makeKnownLinkObj( $rev->getTitle(), - htmlspecialchars( $wgLang->timeanddate( $ts ) ), 'oldid=' . $rev->getId() ); + $pageLink = $this->sk->linkKnown( + $rev->getTitle(), + htmlspecialchars( $wgLang->timeanddate( $ts ) ), + array(), + array( 'oldid' => $rev->getId() ) + ); if( $rev->isDeleted( Revision::DELETED_TEXT ) ) { $pageLink = '<span class="history-deleted">' . $pageLink . '</span>'; } @@ -238,8 +242,15 @@ class MergehistoryForm { if( !$rev->userCan( Revision::DELETED_TEXT ) ) $last = $this->message['last']; else if( isset($this->prevId[$row->rev_id]) ) - $last = $this->sk->makeKnownLinkObj( $rev->getTitle(), $this->message['last'], - "diff=" . $row->rev_id . "&oldid=" . $this->prevId[$row->rev_id] ); + $last = $this->sk->linkKnown( + $rev->getTitle(), + $this->message['last'], + array(), + array( + 'diff' => $row->rev_id, + 'oldid' => $this->prevId[$row->rev_id] + ) + ); $userLink = $this->sk->revUserTools( $rev ); @@ -261,8 +272,15 @@ class MergehistoryForm { if( !$this->userCan($row, Revision::DELETED_TEXT) ) { return '<span class="history-deleted">' . $wgLang->timeanddate( $ts, true ) . '</span>'; } else { - $link = $this->sk->makeKnownLinkObj( $titleObj, - $wgLang->timeanddate( $ts, true ), "target=$target×tamp=$ts" ); + $link = $this->sk->linkKnown( + $titleObj, + $wgLang->timeanddate( $ts, true ), + array(), + array( + 'target' => $target, + 'timestamp' => $ts + ) + ); if( $this->isDeleted($row, Revision::DELETED_TEXT) ) $link = '<span class="history-deleted">' . $link . '</span>'; return $link; @@ -270,7 +288,7 @@ class MergehistoryForm { } function merge() { - global $wgOut, $wgUser; + global $wgOut; # Get the titles directly from the IDs, in case the target page params # were spoofed. The queries are done based on the IDs, so it's best to # keep it consistent... |