Revert "[search] Remove more dead code"
authorErik Bernhardson <ebernhardson@wikimedia.org>
Tue, 14 Mar 2017 20:10:23 +0000 (13:10 -0700)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Tue, 14 Mar 2017 20:11:04 +0000 (13:11 -0700)
commit2bdc0aef99aee2044593f0cc364012952830a925
treebe4a89b096fbccbbf91ad44b2e9e0f339f2ee77e
parent24e421e2a26b51dd5a03fe42e74ae380591a59df
Revert "[search] Remove more dead code"

This reverts commit 1525f6cd45e47c4e9623da234a1d55f862b39498.

This should be functionally equivilent to what was being done
before. When go is triggered but does not cause a redirect the
hook is called. Nothing is done with the result of the hook, same
as before.

Not going to bother deprecating, it doesn't particularly hurt the
architecture in any way, it was removed for being what appeared as dead
code due to a long removed feature. There are apparently a few usages of
this in extensions that may or may not work with recent releases of
mediawiki.

Bug: T160441
Change-Id: I368dec79431fbcc8d04f95afed8bbc7262a2e5de
docs/hooks.txt
includes/specials/SpecialSearch.php