From: Alexandre Emsenhuber Date: Tue, 31 Jul 2012 11:18:03 +0000 (+0200) Subject: Fix logic error from Ia74ac399 (2ee4653). X-Git-Tag: 1.31.0-rc.0~22904^2 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=a91146d8fede3e8531e8eb0fd309b32c97ece70d;p=lhc%2Fweb%2Fwiklou.git Fix logic error from Ia74ac399 (2ee4653). The "views" part of the table should only be displayed if view counters are *not* disabled (and not the opposite). Change-Id: I4859f396cc9e2eb7b9f4eff6502efc459a3410fd --- diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index ea4425471c..f4813a4c0e 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -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() ) ) .