From: Raimond Spekking Date: Thu, 4 Nov 2010 11:06:51 +0000 (+0000) Subject: * Special:Search: Add CSS classes to 'none found' and 'create link' messages X-Git-Tag: 1.31.0-rc.0~34101 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=1acd8098ec42414177d757cd57e224675fa68eb9;p=lhc%2Fweb%2Fwiklou.git * Special:Search: Add CSS classes to 'none found' and 'create link' messages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 6a412f96bf..192d21d169 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -198,6 +198,7 @@ LocalSettings.php. The specific bugs are listed below in the general notes. * (bug 17394) Make installer check for latest version against MediaWiki.org * (bug 20627) Installer should be in languages other than English * Support for metadata in SVG files (title, description). +* Special:Search: Add CSS classes to 'none found' and 'create link' messages === Bug fixes in 1.17 === * (bug 17560) Half-broken deletion moved image files to deletion archive diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index e573b87789..e6819841b1 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -302,7 +302,8 @@ class SpecialSearch { $textMatches->free(); } if( $num === 0 ) { - $wgOut->addWikiMsg( 'search-nonefound', wfEscapeWikiText( $term ) ); + #$wgOut->addWikiMsg( 'search-nonefound', wfEscapeWikiText( $term ) ); + $wgOut->wrapWikiMsg( "

\n$1

", array( 'search-nonefound', wfEscapeWikiText( $term ) ) ); $this->showCreateLink( $t ); } $wgOut->addHtml( "" ); @@ -328,7 +329,7 @@ class SpecialSearch { } } if( $messageName ) { - $wgOut->addWikiMsg( $messageName, wfEscapeWikiText( $t->getPrefixedText() ) ); + $wgOut->wrapWikiMsg( "

\n$1

", array( $messageName, wfEscapeWikiText( $t->getPrefixedText() ) ) ); } else { // preserve the paragraph for margins etc... $wgOut->addHtml( '

' );