https://bugzilla.wikimedia.org/show_bug.cgi?id=67234
Bug ID: 67234
Summary: PowerSearchBox stopped respecting custom search
namespace names from SearchableNamespaces hook
Product: MediaWiki
Version: 1.23.0
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Search
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Web browser: ---
Mobile Platform: ---
PowerSearchBox stopped respecting custom search namespace names from the
SearchableNamespaces hook. This change happened between 1.21 and 1.23.
In SpecialSearch.php, the powerSearchBox function changed this line:
$name = str_replace( '_', ' ', $name );
to
$name = $wgContLang->getConverter()->convertNamespace( $namespace );
The SearchableNamespaces hook allows the searchable namespaces array to be
identified as:
$arr[ns] => $name
However, the new code in powerSearchBox ignores the ability to use custom names
from this hook, and forces only the system names to be used.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l