From 2ef2b98cc15f24a540f89f981bd2a7aa9fb8a8fc Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 11 Apr 2009 23:05:13 +0000 Subject: [PATCH] Removed $wgTitle from PageHistory --- includes/PageHistory.php | 8 ++++---- includes/specials/SpecialRevisiondelete.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 4ea5488db2..11d025ee80 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -67,7 +67,7 @@ class PageHistory { * @returns nothing */ function history() { - global $wgOut, $wgRequest, $wgTitle, $wgScript; + global $wgOut, $wgRequest, $wgScript; /* * Allow client caching. @@ -153,7 +153,7 @@ class PageHistory { * @return string HTML output */ function beginHistoryList() { - global $wgTitle, $wgUser, $wgScript, $wgEnableHtmlDiff; + global $wgUser, $wgScript, $wgEnableHtmlDiff; $this->lastdate = ''; $s = wfMsgExt( 'histlegend', array( 'parse') ); if( $wgUser->isAllowed('deleterevision') ) { @@ -165,14 +165,14 @@ class PageHistory { 'style' => 'visibility:hidden;float:right;' ) ); - $s .= Xml::hidden( 'target', $wgTitle->getPrefixedDbKey() ); + $s .= Xml::hidden( 'target', $this->mTitle->getPrefixedDbKey() ); $s .= Xml::hidden( 'oldid', '', array('id'=>'revdel-oldid') ); $s .= Xml::submitButton( wfMsg( 'showhideselectedversions' ) ); $s .= Xml::closeElement( 'form' ); } $s .= Xml::openElement( 'form', array( 'action' => $wgScript, 'id' => 'mw-history-compare' ) ); - $s .= Xml::hidden( 'title', $wgTitle->getPrefixedDbKey() ); + $s .= Xml::hidden( 'title', $this->mTitle->getPrefixedDbKey() ); if( $wgEnableHtmlDiff ) { $s .= $this->submitButton( wfMsg( 'visualcomparison'), array( diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index e63bdcf685..b78cb2f533 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -1528,11 +1528,11 @@ class RevisionDeleter { $s = ''; $changes = self::getChanges( $nbitfield, $obitfield ); if( count( $changes[0] ) ) { - $s .= wfMsgForContent ( 'revdelete-hid', implode ( ', ', $changes[0] ) ); + $s .= wfMsgForContent( 'revdelete-hid', implode( ', ', $changes[0] ) ); } if( count( $changes[1] ) ) { if ($s) $s .= '; '; - $s .= wfMsgForContent ( 'revdelete-unhid', implode ( ', ', $changes[1] ) ); + $s .= wfMsgForContent( 'revdelete-unhid', implode( ', ', $changes[1] ) ); } if( count( $changes[2] ) ) { $s .= $s ? ' (' . $changes[2][0] . ')' : $changes[2][0]; -- 2.20.1