From 8ac435b07262f603ce6bd6f8180c63a0bd011e9d Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 26 Jan 2011 16:56:46 +0000 Subject: [PATCH] Followup r81034, remove the global statements --- includes/Skin.php | 2 +- includes/SkinTemplate.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() ); } -- 2.20.1