r46419 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46418‎ | r46419 | r46420 >
Date:04:12, 28 January 2009
Author:brion
Status:ok
Tags:
Comment:
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.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialSearch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialSearch.php
@@ -945,17 +945,17 @@
946946 'search' => $textMatches->getSuggestionQuery(),
947947 'fulltext' => wfMsg('search')),
948948 $this->powerSearchOptions());
949 -
 949+
950950 $suggestLink = $sk->makeKnownLinkObj( $st,
951951 $textMatches->getSuggestionSnippet(),
952952 $stParams );
953 -
 953+
954954 $wgOut->addHTML('<div class="searchdidyoumean">'.wfMsg('search-suggest',$suggestLink).'</div>');
955955 }
956956
957957 $wgOut->addHTML( $extra );
958958
959 - $wgOut->wrapWikiMsg( '<div class="mw-searchresult">$1</div>', 'searchresulttext' );
 959+ $wgOut->addWikiMsg( 'searchresulttext' );
960960
961961 if( '' === trim( $term ) ) {
962962 // Empty query -- straight view of search form

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r45651Wrap 'searchresulttext' into a div with classraymond20:11, 10 January 2009

Status & tagging log