New hook accommodates non-revision rc queries
authorErik Bernhardson <ebernhardson@wikimedia.org>
Tue, 15 Oct 2013 22:21:34 +0000 (15:21 -0700)
committerAndrew Garrett <agarrett@wikimedia.org>
Wed, 23 Oct 2013 23:38:54 +0000 (10:38 +1100)
commit9efb7a733956b92360def1028db9870c9886d1ac
treed59fbc132d5023ba58eb0dc83dc4ca90b1cacc8b
parentcd6bc6116bcf6a98d4f1d242734172c3dcf450b1
New hook accommodates non-revision rc queries

Within Special:RecentChanges the default non-extended query contains

    ( rc_this_oldid=page_latest OR rc_type=3 )

Wikidata has previously used the SpecialWatchlistQuery hook to look for
this exact string and change rc_type=3 to rc_type IN (3,5).  Flow is another
type of change that doesn't have a matching row in revisions to match
page_latest for and needs to be added to this query.

This patch adds a new hook, SpecialWatchlistGetNonRevisionTypes, which allows
different extensions to add to a list of values for rc_type (or rc_source once
85787 is merged).  This will allow multiple extensions to affect the resulting
query without them breaking eachother.

Change-Id: Id6916fe999c0faa38de878b7b5687e7ea00901bd
RELEASE-NOTES-1.22
cache/.htaccess [changed mode: 0644->0755]
docs/hooks.txt
includes/specials/SpecialWatchlist.php