Fix for disabled page counters
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 14 May 2003 08:42:47 +0000 (08:42 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 14 May 2003 08:42:47 +0000 (08:42 +0000)
includes/Skin.php

index 5f219bd..55e32e4 100644 (file)
@@ -527,13 +527,13 @@ function toggleVisibility( _levelId, _otherId, _linkId) {
        function pageStats()
        {
                global $wgOut, $wgLang, $wgArticle;
-               global $oldid, $diff;
+               global $oldid, $diff, $wgDisableCounters;
 
                if ( ! $wgOut->isArticle() ) { return ""; }
                if ( isset( $oldid ) || isset( $diff ) ) { return ""; }
                if ( 0 == $wgArticle->getID() ) { return ""; }
 
-               if ( $wgDisableCounts ) {
+               if ( $wgDisableCounters ) {
                        $s = "";
                } else {
                        $count = $wgArticle->getCount();