Fix logic error from Ia74ac399 (2ee4653).
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 31 Jul 2012 11:18:03 +0000 (13:18 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 31 Jul 2012 11:18:03 +0000 (13:18 +0200)
The "views" part of the table should only
be displayed if view counters are *not*
disabled (and not the opposite).

Change-Id: I4859f396cc9e2eb7b9f4eff6502efc459a3410fd

includes/actions/InfoAction.php

index ea44254..f4813a4 100644 (file)
@@ -87,7 +87,7 @@ class InfoAction extends FormlessAction {
                                );
                }
 
-               if ( $wgDisableCounters ) {
+               if ( !$wgDisableCounters ) {
                        $content .= Html::rawElement( 'tr', array(),
                                Html::element( 'th', array( 'colspan' => 3 ), $this->msg( 'pageinfo-header-views' )->text() )
                        ) .