New hook, 'SearchResultInitFromTitle'
authoryaron <yaron57@gmail.com>
Wed, 5 Sep 2012 02:21:09 +0000 (06:21 +0400)
committeryaron <yaron57@gmail.com>
Wed, 5 Sep 2012 16:03:09 +0000 (20:03 +0400)
commit13b2fe802eb00a7ee2c84c7bb526c7c486326c2b
tree982e407a982cf5f8c2b00c8712d5a3aefcbca8d6
parent122e6813f70027d5eab5870f00d94327333d0a3f
New hook, 'SearchResultInitFromTitle'

This hook lets you change the revision ID used for a page (a Title
object), when displaying that page in search results. It's useful for
the Approved Revs extension, so that pages whose approved revision is
not their latest can have their approved revision, not the latest one,
show up when doing a search text. It's also potentially useful for
other, similar extensions, like FlaggedRevs.

Change-Id: Ic4bad8dfaa83de131db9c8e7667d7f5767d8d5f5
docs/hooks.txt
includes/search/SearchEngine.php