Index: trunk/phase3/includes/PageHistory.php |
— | — | @@ -387,8 +387,7 @@ |
388 | 388 | |
389 | 389 | $res = $dbr->select( |
390 | 390 | 'revision', |
391 | | - array('rev_id', 'rev_page', 'rev_text_id', 'rev_user', 'rev_comment', 'rev_user_text', |
392 | | - 'rev_timestamp', 'rev_minor_edit', 'rev_deleted', 'rev_len'), |
| 391 | + Revision::selectFields(), |
393 | 392 | array_merge(array("rev_page=$page_id"), $offsets), |
394 | 393 | $fname, |
395 | 394 | array('ORDER BY' => "rev_timestamp $dirs", |
— | — | @@ -530,8 +529,7 @@ |
531 | 530 | function getQueryInfo() { |
532 | 531 | return array( |
533 | 532 | 'tables' => 'revision', |
534 | | - 'fields' => array('rev_id', 'rev_page', 'rev_text_id', 'rev_user', 'rev_comment', 'rev_user_text', |
535 | | - 'rev_timestamp', 'rev_minor_edit', 'rev_deleted', 'rev_len'), |
| 533 | + 'fields' => Revision::selectFields(), |
536 | 534 | 'conds' => array('rev_page' => $this->mPageHistory->mTitle->getArticleID() ), |
537 | 535 | 'options' => array( 'USE INDEX' => 'page_timestamp' ) |
538 | 536 | ); |