Allow wikilinks in "Powersearch-ns"
authorPmlineditor <pmlinediter@live.com>
Sun, 5 Feb 2017 21:57:35 +0000 (03:27 +0530)
committerPmlineditor <pmlinediter@live.com>
Sun, 5 Feb 2017 21:57:35 +0000 (03:27 +0530)
Changed use of escaped() to parse() to allow wikilinks in
MediaWiki:Powersearch-ns. Use case is provided in T157204.

Bug: T157204
Change-Id: Ic2eb28aaf735c31b50f3365176966e2e48091e54

includes/widget/search/SearchFormWidget.php

index e223b95..1451843 100644 (file)
@@ -297,7 +297,7 @@ class SearchFormWidget {
                return
                        "<fieldset id='mw-searchoptions'>" .
                                "<legend>" . $this->specialSearch->msg( 'powersearch-legend' )->escaped() . '</legend>' .
-                               "<h4>" . $this->specialSearch->msg( 'powersearch-ns' )->escaped() . '</h4>' .
+                               "<h4>" . $this->specialSearch->msg( 'powersearch-ns' )->parse() . '</h4>' .
                                // populated by js if available
                                "<div id='mw-search-togglebox'></div>" .
                                $divider .