Removed $wgTitle from PageHistory
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 11 Apr 2009 23:05:13 +0000 (23:05 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 11 Apr 2009 23:05:13 +0000 (23:05 +0000)
includes/PageHistory.php
includes/specials/SpecialRevisiondelete.php

index 4ea5488..11d025e 100644 (file)
@@ -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(
index e63bdcf..b78cb2f 100644 (file)
@@ -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];