From: Chad Horohoe Date: Fri, 22 Jan 2010 16:10:52 +0000 (+0000) Subject: Rm some unneeded $wgParser globals X-Git-Tag: 1.31.0-rc.0~38165 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=e3ee8e0903faad173ecb3479c0f3e17fb70e9c20;p=lhc%2Fweb%2Fwiklou.git Rm some unneeded $wgParser globals --- diff --git a/includes/Article.php b/includes/Article.php index d747706214..8168024510 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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__ ); diff --git a/includes/EditPage.php b/includes/EditPage.php index 3dee7949d7..db32c4bf48 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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( "
\n$1
", 'explainconflict' ); $this->edittime = $this->mArticle->getTimestamp();