From: Aaron Schulz Date: Sat, 11 Apr 2009 23:05:13 +0000 (+0000) Subject: Removed $wgTitle from PageHistory X-Git-Tag: 1.31.0-rc.0~42165 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=2ef2b98cc15f24a540f89f981bd2a7aa9fb8a8fc;p=lhc%2Fweb%2Fwiklou.git Removed $wgTitle from PageHistory --- 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];