jenkins-bot has submitted this change and it was merged.
Change subject: Fix fatal on Special:Search
......................................................................
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
---
M includes/specials/SpecialSearch.php
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Smalyshev: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/specials/SpecialSearch.php
b/includes/specials/SpecialSearch.php
index 2069638..b01a45f 100644
--- a/includes/specials/SpecialSearch.php
+++ b/includes/specials/SpecialSearch.php
@@ -211,8 +211,8 @@
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 ] )
--
To view, visit https://gerrit.wikimedia.org/r/285456
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id5c8b16b90e1d866d3c8ca31cc622442046da0e2
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Smalyshev <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits