Index: trunk/extensions/FlaggedRevs/specialpages/OldReviewedPages_body.php |
— | — | @@ -348,6 +348,7 @@ |
349 | 349 | $conds['cl_to'] = $this->category; |
350 | 350 | $useIndex['categorylinks'] = 'cl_from'; |
351 | 351 | } |
| 352 | + $this->mIndexField = 'fp_pending_since'; |
352 | 353 | # Show outdated version for a specific review level |
353 | 354 | } else { |
354 | 355 | $tables[] = 'flaggedpage_pending'; |
— | — | @@ -374,7 +375,9 @@ |
375 | 376 | $conds['cl_to'] = $this->category; |
376 | 377 | $useIndex['categorylinks'] = 'cl_from'; |
377 | 378 | } |
| 379 | + $this->mIndexField = 'fpp_pending_since'; |
378 | 380 | } |
| 381 | + $fields[] = $this->mIndexField; // Pager needs this |
379 | 382 | # Filter namespace |
380 | 383 | if( $this->namespace !== NULL ) { |
381 | 384 | $conds['page_namespace'] = $this->namespace; |
— | — | @@ -399,7 +402,7 @@ |
400 | 403 | } |
401 | 404 | |
402 | 405 | function getIndexField() { |
403 | | - return 'pending_since'; |
| 406 | + return $this->mIndexField; |
404 | 407 | } |
405 | 408 | |
406 | 409 | function getStartBody() { |