Cleanup execution flow through SpecialSearch::execute()
authorErik Bernhardson <ebernhardson@wikimedia.org>
Tue, 15 Nov 2016 01:11:43 +0000 (17:11 -0800)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Tue, 17 Jan 2017 21:45:40 +0000 (13:45 -0800)
commit7075ea92d2d0cee04ea5e385a24f6c36c2f3f25b
tree9f56662fedd53af9c31c881101d12274dce28fd9
parent6e155624fa4481f0c4fcb70e4228e53cb62ec254
Cleanup execution flow through SpecialSearch::execute()

Not a big change, but makes it so there is only one path into
SpecialSearch::showResults(). Makes things a little easier to follow.
Also moves the code for checking if full text search is disabled into
execute(), makes sense to check before even trying to make a search
engine. Also moves some setup code out of execute and into the setupPage
function

Bug: T150393
Change-Id: Ib527fc3a3c39eb2e56985e5d1e4905fc4562353c
includes/specials/SpecialSearch.php
tests/phpunit/includes/specials/SpecialSearchTest.php