Rm some unneeded $wgParser globals
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 22 Jan 2010 16:10:52 +0000 (16:10 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 22 Jan 2010 16:10:52 +0000 (16:10 +0000)
includes/Article.php
includes/EditPage.php

index d747706..8168024 100644 (file)
@@ -1371,7 +1371,7 @@ class Article {
         * @param $forceKnown Boolean: should the image be shown as a bluelink regardless of existence?
         */
        public function viewRedirect( $target, $appendSubtitle = true, $forceKnown = false ) {
-               global $wgParser, $wgOut, $wgContLang, $wgStylePath, $wgUser;
+               global $wgOut, $wgContLang, $wgStylePath, $wgUser;
                # Display redirect
                if( !is_array( $target ) ) {
                        $target = array( $target );
@@ -3268,7 +3268,7 @@ class Article {
         * @param $changed Whether or not the content actually changed
         */
        public function editUpdates( $text, $summary, $minoredit, $timestamp_of_pagechange, $newid, $changed = true ) {
-               global $wgDeferredUpdateList, $wgMessageCache, $wgUser, $wgParser, $wgEnableParserCache;
+               global $wgDeferredUpdateList, $wgMessageCache, $wgUser, $wgEnableParserCache;
 
                wfProfileIn( __METHOD__ );
 
index 3dee794..db32c4b 100644 (file)
@@ -1402,7 +1402,7 @@ HTML
        }
        
        protected function showHeader() {
-               global $wgOut, $wgParser, $wgUser, $wgTitle, $wgMaxArticleSize, $wgLang;
+               global $wgOut, $wgUser, $wgTitle, $wgMaxArticleSize, $wgLang;
                if ( $this->isConflict ) {
                        $wgOut->wrapWikiMsg( "<div class='mw-explainconflict'>\n$1</div>", 'explainconflict' );
                        $this->edittime = $this->mArticle->getTimestamp();