From: Chad Horohoe Date: Wed, 26 Jan 2011 16:56:46 +0000 (+0000) Subject: Followup r81034, remove the global statements X-Git-Tag: 1.31.0-rc.0~32349 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=8ac435b07262f603ce6bd6f8180c63a0bd011e9d;p=lhc%2Fweb%2Fwiklou.git Followup r81034, remove the global statements --- diff --git a/includes/Skin.php b/includes/Skin.php index 3d6c0527bc..a937b4cb81 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1472,7 +1472,7 @@ class Skin extends Linker { } function pageStats() { - global $wgOut, $wgLang, $wgArticle, $wgRequest, $wgUser; + global $wgOut, $wgLang, $wgRequest, $wgUser; global $wgDisableCounters, $wgMaxCredits, $wgShowCreditsIfMax, $wgPageShowWatchingUsers; if ( !is_null( $wgRequest->getVal( 'oldid' ) ) || !is_null( $wgRequest->getVal( 'diff' ) ) ) { diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index fc63dcebbb..cafc46e6c5 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -132,7 +132,7 @@ class SkinTemplate extends Skin { * @param $out OutputPage */ function outputPage( OutputPage $out ) { - global $wgArticle, $wgUser, $wgLang, $wgContLang; + global $wgUser, $wgLang, $wgContLang; global $wgScript, $wgStylePath, $wgLanguageCode; global $wgMimeType, $wgJsMimeType, $wgOutputEncoding, $wgRequest; global $wgXhtmlDefaultNamespace, $wgXhtmlNamespaces, $wgHtml5Version; @@ -385,7 +385,7 @@ class SkinTemplate extends Skin { $this->credits = false; if( $wgMaxCredits != 0 ){ - $this->credits = Credits::getCredits( $article, $wgMaxCredits, $wgShowCreditsIfMax ); + $this->credits = Credits::getCredits( $, $wgMaxCredits, $wgShowCreditsIfMax ); } else { $tpl->set( 'lastmod', $this->lastModified() ); }