Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1472,6 +1472,11 @@ |
1473 | 1473 | $oldTitle: old title (object) |
1474 | 1474 | $newTitle: new title (object) |
1475 | 1475 | |
| 1476 | +'SpecialNewpagesConditions': called when building sql query for Special:NewPages |
| 1477 | +&$special: NewPagesPager object (subclass of ReverseChronologicalPager) |
| 1478 | +&opts: FormOptions object containing special page options |
| 1479 | +&$conds: array of WHERE conditionals for query |
| 1480 | + |
1476 | 1481 | 'SpecialPage_initList': called when setting up SpecialPage::$mList, use this |
1477 | 1482 | hook to remove a core special page |
1478 | 1483 | $list: list (array) of core special pages |
Index: trunk/phase3/includes/specials/SpecialNewpages.php |
— | — | @@ -435,6 +435,9 @@ |
436 | 436 | if ( $this->opts->getValue( 'hideredirs' ) ) { |
437 | 437 | $conds['page_is_redirect'] = 0; |
438 | 438 | } |
| 439 | + |
| 440 | + // Allow changes to the New Pages query |
| 441 | + wfRunHooks('SpecialNewpagesConditions', array(&$this, $this->opts, &$conds)); |
439 | 442 | |
440 | 443 | $info = array( |
441 | 444 | 'tables' => array( 'recentchanges', 'page' ), |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -52,6 +52,7 @@ |
53 | 53 | * When visiting a "red link" of a deleted file, a deletion and move log excerpt |
54 | 54 | is provided on the Upload form. |
55 | 55 | * (bug 22647) Add category details in search results. |
| 56 | +* (bug 23276) Add hook to Special:NewPages to modify query |
56 | 57 | |
57 | 58 | === Bug fixes in 1.17 === |
58 | 59 | * (bug 17560) Half-broken deletion moved image files to deletion archive |