From 62f5c5f277395bd8c4fd807bdf1e31d6b3378afe Mon Sep 17 00:00:00 2001 From: Erik Bernhardson Date: Tue, 26 Apr 2016 13:07:32 -0700 Subject: [PATCH] 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 --- includes/specials/SpecialSearch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ] ) -- 2.20.1