Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -37,6 +37,9 @@ |
38 | 38 | /// For links |
39 | 39 | protected $extraParams = array(); |
40 | 40 | |
| 41 | + /// No idea, apparently used by some other classes |
| 42 | + protected $mPrefix; |
| 43 | + |
41 | 44 | const NAMESPACES_CURRENT = 'sense'; |
42 | 45 | |
43 | 46 | public function __construct() { |
— | — | @@ -84,6 +87,7 @@ |
85 | 88 | */ |
86 | 89 | public function load( &$request, &$user ) { |
87 | 90 | list( $this->limit, $this->offset ) = $request->getLimitOffset( 20, 'searchlimit' ); |
| 91 | + $this->mPrefix = $request->getVal( 'prefix', '' ); |
88 | 92 | |
89 | 93 | |
90 | 94 | # Extract manually requested namespaces |
— | — | @@ -179,6 +183,7 @@ |
180 | 184 | $search->setNamespaces( $this->namespaces ); |
181 | 185 | $search->showRedirects = $this->searchRedirects; // BC |
182 | 186 | $search->setFeatureData( 'list-redirects', $this->searchRedirects ); |
| 187 | + $search->prefix = $this->mPrefix; |
183 | 188 | $term = $search->transformSearchTerm($term); |
184 | 189 | |
185 | 190 | wfRunHooks( 'SpecialSearchSetupEngine', array( $this, $this->profile, $search ) ); |