EBernhardson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/285456

Change subject: Fix fatal on Special:Search
......................................................................

Fix fatal on Special:Search

Icef1ecbe had a mistaken bit of code that called newSearchEngine on the
wrong thing. Repoint it at MediaWikiServices where the function lives.

Change-Id: Id5c8b16b90e1d866d3c8ca31cc622442046da0e2
---
M includes/specials/SpecialSearch.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/56/285456/1

diff --git a/includes/specials/SpecialSearch.php 
b/includes/specials/SpecialSearch.php
index 2069638..b21abe8 100644
--- a/includes/specials/SpecialSearch.php
+++ b/includes/specials/SpecialSearch.php
@@ -211,7 +211,7 @@
                        return;
                }
                # If there's an exact or very near match, jump right there.
-               $title = $this->newSearchEngine()->
+               $title = MediaWikiServices::getInstance()->newSearchEngine()
                        getNearMatcher( $this->getConfig() )->getNearMatch( 
$term );
 
                if ( !is_null( $title ) &&

-- 
To view, visit https://gerrit.wikimedia.org/r/285456
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id5c8b16b90e1d866d3c8ca31cc622442046da0e2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to