From a5bbbf35c8884dae7df1bbf37fdc5f65d02c2778 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 20 Jun 2011 09:35:44 +0000 Subject: [PATCH] Partial revert of r86734: restore mPrefix - I still don't know what it does --- includes/specials/SpecialSearch.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 52dff74944..7cea88650a 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -37,6 +37,9 @@ class SpecialSearch extends SpecialPage { /// For links protected $extraParams = array(); + /// No idea, apparently used by some other classes + protected $mPrefix; + const NAMESPACES_CURRENT = 'sense'; public function __construct() { @@ -84,6 +87,7 @@ class SpecialSearch extends SpecialPage { */ public function load( &$request, &$user ) { list( $this->limit, $this->offset ) = $request->getLimitOffset( 20, 'searchlimit' ); + $this->mPrefix = $request->getVal( 'prefix', '' ); # Extract manually requested namespaces @@ -179,6 +183,7 @@ class SpecialSearch extends SpecialPage { $search->setNamespaces( $this->namespaces ); $search->showRedirects = $this->searchRedirects; // BC $search->setFeatureData( 'list-redirects', $this->searchRedirects ); + $search->prefix = $this->mPrefix; $term = $search->transformSearchTerm($term); wfRunHooks( 'SpecialSearchSetupEngine', array( $this, $this->profile, $search ) ); -- 2.20.1