* addWikitext instead of addHTML
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Mon, 25 Apr 2005 09:05:18 +0000 (09:05 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Mon, 25 Apr 2005 09:05:18 +0000 (09:05 +0000)
includes/SpecialSearch.php

index 93daf34..70341e8 100644 (file)
 require_once( 'SearchEngine.php' );
 require_once( 'Revision.php' );
 
-function wfSpecialSearch( $par='' ) {
+/**
+ * Entry point
+ *
+ * @param string $par (default '')
+ */
+function wfSpecialSearch( $par = '' ) {
        global $wgRequest, $wgUser;
        
        $search = $wgRequest->getText( 'search', $par );
@@ -108,8 +113,7 @@ class SpecialSearch {
                                $editurl = $t->escapeLocalURL( 'action=edit' );
                        }
                }
-               # FIXME: HTML in wiki message
-               $wgOut->addHTML( '<p>' . wfMsg('nogomatch', $editurl, htmlspecialchars( $term ) ) . "</p>\n" );
+               $wgOut->addWikiText( wfMsg('nogomatch', $term) );
 
                return $this->showResults( $term );
        }