Tweichart has uploaded a new change for review.
https://gerrit.wikimedia.org/r/234471
Change subject: fix for search scope on special page, buttons were ignored, see
issue #892
......................................................................
fix for search scope on special page, buttons were ignored, see issue #892
Change-Id: I9b69367446455c2715eb528ceb810458c08d79c7
---
M ExtendedSearch/includes/SearchIndex/SearchOptions.class.php
1 file changed, 2 insertions(+), 1 deletion(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions
refs/changes/71/234471/1
diff --git a/ExtendedSearch/includes/SearchIndex/SearchOptions.class.php
b/ExtendedSearch/includes/SearchIndex/SearchOptions.class.php
index 79c8d99..c10aba2 100644
--- a/ExtendedSearch/includes/SearchIndex/SearchOptions.class.php
+++ b/ExtendedSearch/includes/SearchIndex/SearchOptions.class.php
@@ -289,7 +289,8 @@
$aFq = array();
$aBq = array();
- $scope = ( BsConfig::get( 'MW::ExtendedSearch::DefScopeUser' )
== 'title' )
+ $oRequest = RequestContext::getMain()->getRequest();
+ $scope = $oRequest->getVal( 'search_scope', BsConfig::get(
'MW::ExtendedSearch::DefScopeUser' ) ) == 'title'
? 'title'
: 'text';
$this->aOptions['scope'] = $scope;
--
To view, visit https://gerrit.wikimedia.org/r/234471
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9b69367446455c2715eb528ceb810458c08d79c7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Tweichart <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits