Revert "Starter for a re-jig of hit counting (in a per-day table)."
[lhc/web/wiklou.git] / includes / Skin.php
index 64f9a22..1da33ec 100644 (file)
@@ -1269,10 +1269,11 @@ END;
                if ( 0 == $wgArticle->getID() ) { return ''; }
 
                $s = '';
-               $count = $wgArticle->getCount();
-               if ( $count ) {
-                       $count = $wgLang->formatNum( $count );
-                       $s = wfMsgExt( 'viewcount', array( 'parseinline' ), $count );
+               if ( !$wgDisableCounters ) {
+                       $count = $wgLang->formatNum( $wgArticle->getCount() );
+                       if ( $count ) {
+                               $s = wfMsgExt( 'viewcount', array( 'parseinline' ), $count );
+                       }
                }
 
                if( $wgMaxCredits != 0 ){