From: Brion Vibber Date: Wed, 28 Jan 2009 04:12:30 +0000 (+0000) Subject: Revert r45651 "Wrap 'searchresulttext' into a div with class" X-Git-Tag: 1.31.0-rc.0~43190 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=e45edb1b6c7545af922a36d209c9ac6f0d3dd75c;p=lhc%2Fweb%2Fwiklou.git Revert r45651 "Wrap 'searchresulttext' into a div with class" This causes breakage when the message text starts with line-start-markup such as a table or list. --- diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index be6faa7441..fd712d99d0 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -945,17 +945,17 @@ class SpecialSearchOld { 'search' => $textMatches->getSuggestionQuery(), 'fulltext' => wfMsg('search')), $this->powerSearchOptions()); - + $suggestLink = $sk->makeKnownLinkObj( $st, $textMatches->getSuggestionSnippet(), $stParams ); - + $wgOut->addHTML('
'.wfMsg('search-suggest',$suggestLink).'
'); } $wgOut->addHTML( $extra ); - $wgOut->wrapWikiMsg( '
$1
', 'searchresulttext' ); + $wgOut->addWikiMsg( 'searchresulttext' ); if( '' === trim( $term ) ) { // Empty query -- straight view of search form