Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1479,6 +1479,7 @@ |
1480 | 1480 | &$tables: array of tables to be queried |
1481 | 1481 | &$join_conds: join conditions for the tables |
1482 | 1482 | $opts: FormOptions for this request |
| 1483 | +&$query_options: array of options for the database request |
1483 | 1484 | |
1484 | 1485 | 'SpecialSearchNogomatch': called when user clicked the "Go" button but the |
1485 | 1486 | target doesn't exist |
Index: trunk/phase3/includes/specials/SpecialRecentchanges.php |
— | — | @@ -295,7 +295,8 @@ |
296 | 296 | $tables, $fields, $conds, $join_conds, $query_options, $opts['tagfilter'] |
297 | 297 | ); |
298 | 298 | |
299 | | - wfRunHooks('SpecialRecentChangesQuery', array( &$conds, &$tables, &$join_conds, $opts ) ); |
| 299 | + if ( !wfRunHooks( 'SpecialRecentChangesQuery', array( &$conds, &$tables, &$join_conds, $opts, &$query_options ) ) ) |
| 300 | + return false; |
300 | 301 | |
301 | 302 | // Don't use the new_namespace_time timestamp index if: |
302 | 303 | // (a) "All namespaces" selected |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -312,6 +312,8 @@ |
313 | 313 | restrict/expand it. |
314 | 314 | * (bug 21936) When a revision has been patrolled, there's now a link back to the |
315 | 315 | article |
| 316 | +* (bug 22315) SpecialRecentChangesQuery hook now pass $query_options and checks |
| 317 | + the return value |
316 | 318 | |
317 | 319 | === Bug fixes in 1.16 === |
318 | 320 | |