Xml::element() -> Xml::tags() since the content is already parsed.
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 2 Jul 2009 15:24:13 +0000 (15:24 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 2 Jul 2009 15:24:13 +0000 (15:24 +0000)
Note: escaping parsed content breaks french typo since spaces before ;:?! are automatically converted to &nbsp; by Parser::parse() and will be viewable by end-users if they're escaped.

includes/specials/SpecialSearch.php

index 3f40bb5..cc2843b 100644 (file)
@@ -766,7 +766,7 @@ class SpecialSearch {
                                array( 'id' => 'mw-searchoptions', 'style' => 'margin:0em;' )
                        ) .
                        Xml::element( 'legend', null, wfMsg('powersearch-legend') ) .
-                       Xml::element( 'h4', null, wfMsgExt( 'powersearch-ns', array( 'parseinline' ) ) ) .
+                       Xml::tags( 'h4', null, wfMsgExt( 'powersearch-ns', array( 'parseinline' ) ) ) .
                        Xml::tags(
                                'div',
                                array( 'id' => 'mw-search-togglebox' ),