Index: trunk/phase3/includes/api/ApiQueryInfo.php |
— | — | @@ -48,12 +48,12 @@ |
49 | 49 | } |
50 | 50 | |
51 | 51 | public function requestExtraData( $pageSet ) { |
52 | | - global $wgDisablePageCounters; |
| 52 | + global $wgDisableCounters; |
53 | 53 | |
54 | 54 | $pageSet->requestField( 'page_restrictions' ); |
55 | 55 | $pageSet->requestField( 'page_is_redirect' ); |
56 | 56 | $pageSet->requestField( 'page_is_new' ); |
57 | | - if ( !$wgDisablePageCounters ) { |
| 57 | + if ( !$wgDisableCounters ) { |
58 | 58 | $pageSet->requestField( 'page_counter' ); |
59 | 59 | } |
60 | 60 | $pageSet->requestField( 'page_touched' ); |
— | — | @@ -250,9 +250,9 @@ |
251 | 251 | $this->pageIsRedir = $pageSet->getCustomField( 'page_is_redirect' ); |
252 | 252 | $this->pageIsNew = $pageSet->getCustomField( 'page_is_new' ); |
253 | 253 | |
254 | | - global $wgDisablePageCounters; |
| 254 | + global $wgDisableCounters; |
255 | 255 | |
256 | | - if ( !$wgDisablePageCounters ) { |
| 256 | + if ( !$wgDisableCounters ) { |
257 | 257 | $this->pageCounter = $pageSet->getCustomField( 'page_counter' ); |
258 | 258 | } |
259 | 259 | $this->pageTouched = $pageSet->getCustomField( 'page_touched' ); |
— | — | @@ -301,11 +301,11 @@ |
302 | 302 | private function extractPageInfo( $pageid, $title ) { |
303 | 303 | $pageInfo = array(); |
304 | 304 | if ( $title->exists() ) { |
305 | | - global $wgDisablePageCounters; |
| 305 | + global $wgDisableCounters; |
306 | 306 | |
307 | 307 | $pageInfo['touched'] = wfTimestamp( TS_ISO_8601, $this->pageTouched[$pageid] ); |
308 | 308 | $pageInfo['lastrevid'] = intval( $this->pageLatest[$pageid] ); |
309 | | - $pageInfo['counter'] = $wgDisablePageCounters |
| 309 | + $pageInfo['counter'] = $wgDisableCounters |
310 | 310 | ? "" |
311 | 311 | : intval( $this->pageCounter[$pageid] ); |
312 | 312 | $pageInfo['length'] = intval( $this->pageLength[$pageid] ); |