Followup r81034, remove the global statements
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 26 Jan 2011 16:56:46 +0000 (16:56 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 26 Jan 2011 16:56:46 +0000 (16:56 +0000)
includes/Skin.php
includes/SkinTemplate.php

index 3d6c052..a937b4c 100644 (file)
@@ -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' ) ) ) {
index fc63dce..cafc46e 100644 (file)
@@ -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() );
                        }