Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -931,7 +931,7 @@ |
932 | 932 | $search->showRedirects = $this->searchRedirects; |
933 | 933 | $search->prefix = $this->mPrefix; |
934 | 934 | $term = $search->transformSearchTerm($term); |
935 | | - |
| 935 | + |
936 | 936 | $this->setupPage( $term ); |
937 | 937 | |
938 | 938 | $rewritten = $search->replacePrefixes($term); |
— | — | @@ -945,17 +945,17 @@ |
946 | 946 | 'search' => $textMatches->getSuggestionQuery(), |
947 | 947 | 'fulltext' => wfMsg('search')), |
948 | 948 | $this->powerSearchOptions()); |
949 | | - |
| 949 | + |
950 | 950 | $suggestLink = $sk->makeKnownLinkObj( $st, |
951 | 951 | $textMatches->getSuggestionSnippet(), |
952 | 952 | $stParams ); |
953 | | - |
| 953 | + |
954 | 954 | $wgOut->addHTML('<div class="searchdidyoumean">'.wfMsg('search-suggest',$suggestLink).'</div>'); |
955 | 955 | } |
956 | 956 | |
957 | 957 | $wgOut->addHTML( $extra ); |
958 | 958 | |
959 | | - $wgOut->addWikiMsg( 'searchresulttext' ); |
| 959 | + $wgOut->wrapWikiMsg( "<div class='mw-searchresult'>\n$1</div>", 'searchresulttext' ); |
960 | 960 | |
961 | 961 | if( '' === trim( $term ) ) { |
962 | 962 | // Empty query -- straight view of search form |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -80,6 +80,8 @@ |
81 | 81 | * (bug 7556) Time zone names in signatures lack i18n |
82 | 82 | * (bug 3311) Automatic category redirects |
83 | 83 | * (bug 17236) Suppress 'watch user page link' for IP range blocks |
| 84 | +* Wrap message 'searchresulttext' (Special:Search) into a div with |
| 85 | + class "mw-searchresult" |
84 | 86 | |
85 | 87 | === Bug fixes in 1.15 === |
86 | 88 | * (bug 16968) Special:Upload no longer throws useless warnings. |