Auto-forward to search suggestion when zero results
authorErik Bernhardson <ebernhardson@wikimedia.org>
Thu, 9 Jul 2015 18:43:04 +0000 (11:43 -0700)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 27 Jul 2015 15:25:01 +0000 (08:25 -0700)
commitbbfc872871ad2c418aa28229a4b351d18130474d
treec89f7ae181689705d814da01d9f25e4384870cfe
parentb42a5e851c3bf888193fc6464fd00ba39786e46f
Auto-forward to search suggestion when zero results

If the user gets zero results, but gets a "Did you mean" result, just
run the query for the "Did you mean" result and inform the user that
this happened. Adds a new query param 'runsuggestion' which will, when
given a falsy value, prevent running the suggestion and give the result
to the original query.

Bug: T105202
Change-Id: I7ed79942c242b1957d46bdcad59985f37466fb83
includes/DefaultSettings.php
includes/specials/SpecialSearch.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/specials/SpecialSearchTest.php