From: Erik Bernhardson Date: Tue, 26 Apr 2016 20:07:32 +0000 (-0700) Subject: Fix fatal on Special:Search X-Git-Tag: 1.31.0-rc.0~7169 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22brouteur%22%2C%28%24id_rubrique%20?a=commitdiff_plain;h=62f5c5f277395bd8c4fd807bdf1e31d6b3378afe;p=lhc%2Fweb%2Fwiklou.git Fix fatal on Special:Search Icef1ecbe had a mistaken bit of code that called newSearchEngine when it should have used getSearchEngine. Rename the function call to be correct. Change-Id: Id5c8b16b90e1d866d3c8ca31cc622442046da0e2 --- diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 20696382d4..b01a45fbae 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -211,8 +211,8 @@ class SpecialSearch extends SpecialPage { return; } # If there's an exact or very near match, jump right there. - $title = $this->newSearchEngine()-> - getNearMatcher( $this->getConfig() )->getNearMatch( $term ); + $title = $this->getSearchEngine() + ->getNearMatcher( $this->getConfig() )->getNearMatch( $term ); if ( !is_null( $title ) && Hooks::run( 'SpecialSearchGoResult', [ $term, $title, &$url ] )