Hoo man has uploaded a new change for review.
https://gerrit.wikimedia.org/r/54145
Change subject: Add array with watchlist options to SpecialWatchlistQuery
......................................................................
Add array with watchlist options to SpecialWatchlistQuery
This data is very useful with the hook as it holds the
criteria to build the watchlist query.
Change-Id: I688ab0b35b301f180bbfde3ad3043b1ee602de10
---
M docs/hooks.txt
M includes/specials/SpecialWatchlist.php
2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/45/54145/1
diff --git a/docs/hooks.txt b/docs/hooks.txt
index 3670cbe..c266dcc 100644
--- a/docs/hooks.txt
+++ b/docs/hooks.txt
@@ -2272,6 +2272,7 @@
&$tables: array of tables to be queried
&$join_conds: join conditions for the tables
&$fields: array of query fields
+$values: array of variables with watchlist options
'TestCanonicalRedirect': Called when about to force a redirect to a canonical
URL for a title when we have no other parameters on the URL. Gives a chance for
diff --git a/includes/specials/SpecialWatchlist.php
b/includes/specials/SpecialWatchlist.php
index f52c9a7..c7f122b 100644
--- a/includes/specials/SpecialWatchlist.php
+++ b/includes/specials/SpecialWatchlist.php
@@ -293,7 +293,7 @@
}
ChangeTags::modifyDisplayQuery( $tables, $fields, $conds,
$join_conds, $options, '' );
- wfRunHooks( 'SpecialWatchlistQuery', array( &$conds, &$tables,
&$join_conds, &$fields ) );
+ wfRunHooks( 'SpecialWatchlistQuery', array( &$conds, &$tables,
&$join_conds, &$fields, $values ) );
$res = $dbr->select( $tables, $fields, $conds, __METHOD__,
$options, $join_conds );
$numRows = $res->numRows();
--
To view, visit https://gerrit.wikimedia.org/r/54145
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I688ab0b35b301f180bbfde3ad3043b1ee602de10
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits