* (bug 25675) Fix search suggestions for Special: pages with spaces
Patch by Umherirrender on https://bugzilla.wikimedia.org/show_bug.cgi?id=25675 - normalizes spaces to underscores for our direct alias list comparison. The current English names mostly use CamelCase, but this is visible with eg German localization, where ExpandTemplates extension has [[Spezial:Vorlagen expandieren]].
This commit is contained in:
parent
7fe32a2fa2
commit
03fa2561b6
1 changed files with 3 additions and 0 deletions
|
|
@ -78,6 +78,9 @@ class PrefixSearch {
|
|||
protected static function specialSearch( $search, $limit ) {
|
||||
global $wgContLang;
|
||||
|
||||
# normalize searchKey, so aliases with spaces can be found - bug 25675
|
||||
$search = str_replace( ' ', '_', $search );
|
||||
|
||||
$searchKey = $wgContLang->caseFold( $search );
|
||||
|
||||
// Unlike SpecialPage itself, we want the canonical forms of both
|
||||
|
|
|
|||
Loading…
Reference in a new issue