From: Raimond Spekking Date: Thu, 13 Mar 2008 21:34:53 +0000 (+0000) Subject: Allow wikitext for 'powersearchtext' X-Git-Tag: 1.31.0-rc.0~49129 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=75d765d32a04fef3e126daf0622528441fba7268;p=lhc%2Fweb%2Fwiklou.git Allow wikitext for 'powersearchtext' --- diff --git a/includes/SpecialSearch.php b/includes/SpecialSearch.php index b15b962fcc..e1b9199f7b 100644 --- a/includes/SpecialSearch.php +++ b/includes/SpecialSearch.php @@ -440,23 +440,17 @@ class SpecialSearch { if( '' == $name ) { $name = wfMsg( 'blanknamespace' ); } - $encName = htmlspecialchars( $name ); - $namespaces .= " \n"; + $namespaces .= Xml::checkLabel( $name, "ns{$ns}", $name, $checked ) . "\n"; } $checked = $this->searchRedirects ? ' checked="checked"' : ''; - $redirect = "\n"; + $redirect = Xml::check( 'redirs', $checked ) . "\n"; + $searchField = Xml::input( 'search', 50, $term, array( 'type' => 'text', 'id' => 'powerSearchText' ) ); + $searchButton = Xml::submitButton( wfMsg( 'powersearch' ), array( 'name' => 'searchx' ) ); - $searchField = '\n"; - - $searchButton = '\n"; - - $ret = wfMsg( 'powersearchtext', + $ret = wfMsgExt( 'powersearchtext', array( 'parse', 'replaceafter' ), $namespaces, $redirect, $searchField, '', '', '', '', '', # Dummy placeholders $searchButton ); @@ -466,7 +460,7 @@ class SpecialSearch { return "

\n
\n{$ret}\n
\n"; } - + function powerSearchFocus() { return "