Chad has uploaded a new change for review.
https://gerrit.wikimedia.org/r/119500
Change subject: Turn on "now using" text when we're a Beta Feature
......................................................................
Turn on "now using" text when we're a Beta Feature
Change-Id: I43accac93ddf70ff239de4b5fa1f427575708111
---
M includes/Hooks.php
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch
refs/changes/00/119500/1
diff --git a/includes/Hooks.php b/includes/Hooks.php
index 058b1a7..d3d29d1 100644
--- a/includes/Hooks.php
+++ b/includes/Hooks.php
@@ -56,6 +56,7 @@
global $wgSearchType;
global $wgSearchTypeAlternatives;
global $wgHooks;
+ global $wgCirrusSearchShowNowUsing;
// If the user has the BetaFeature enabled, use Cirrus as
default.
if ( $wgCirrusSearchEnablePref && $user->isLoggedIn() &&
class_exists( 'BetaFeatures' )
@@ -70,6 +71,7 @@
if ( $wgSearchType === 'CirrusSearch' ) {
$wgHooks[ 'PrefixSearchBackend' ][] =
'CirrusSearch\Hooks::prefixSearch';
$wgHooks[ 'SearchGetNearMatchBefore' ][] =
'CirrusSearch\Hooks::searchGetNearMatchBeforeHook';
+ $wgCirrusSearchShowNowUsing = true;
}
}
--
To view, visit https://gerrit.wikimedia.org/r/119500
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I43accac93ddf70ff239de4b5fa1f427575708111
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits