From: Sam Reed Date: Fri, 5 Nov 2010 22:24:07 +0000 (+0000) Subject: Followup r75999, use the correct variable. Zak confused me with having one thing... X-Git-Tag: 1.31.0-rc.0~34057 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=9826f4a7df8a8253716e5227033670c69d6b12b4;p=lhc%2Fweb%2Fwiklou.git Followup r75999, use the correct variable. Zak confused me with having one thing in the bug title, and another in the bug content! :P --- diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index 2c7b64ac71..64341473a9 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -48,12 +48,12 @@ class ApiQueryInfo extends ApiQueryBase { } public function requestExtraData( $pageSet ) { - global $wgDisablePageCounters; + global $wgDisableCounters; $pageSet->requestField( 'page_restrictions' ); $pageSet->requestField( 'page_is_redirect' ); $pageSet->requestField( 'page_is_new' ); - if ( !$wgDisablePageCounters ) { + if ( !$wgDisableCounters ) { $pageSet->requestField( 'page_counter' ); } $pageSet->requestField( 'page_touched' ); @@ -250,9 +250,9 @@ class ApiQueryInfo extends ApiQueryBase { $this->pageIsRedir = $pageSet->getCustomField( 'page_is_redirect' ); $this->pageIsNew = $pageSet->getCustomField( 'page_is_new' ); - global $wgDisablePageCounters; + global $wgDisableCounters; - if ( !$wgDisablePageCounters ) { + if ( !$wgDisableCounters ) { $this->pageCounter = $pageSet->getCustomField( 'page_counter' ); } $this->pageTouched = $pageSet->getCustomField( 'page_touched' ); @@ -301,11 +301,11 @@ class ApiQueryInfo extends ApiQueryBase { private function extractPageInfo( $pageid, $title ) { $pageInfo = array(); if ( $title->exists() ) { - global $wgDisablePageCounters; + global $wgDisableCounters; $pageInfo['touched'] = wfTimestamp( TS_ISO_8601, $this->pageTouched[$pageid] ); $pageInfo['lastrevid'] = intval( $this->pageLatest[$pageid] ); - $pageInfo['counter'] = $wgDisablePageCounters + $pageInfo['counter'] = $wgDisableCounters ? "" : intval( $this->pageCounter[$pageid] ); $pageInfo['length'] = intval( $this->pageLength[$pageid] );