Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -906,21 +906,21 @@ |
907 | 907 | } |
908 | 908 | } |
909 | 909 | |
910 | | - $wgOut->wrapWikiMsg( "==$1==\n", 'notitlematches' ); |
| 910 | + $extra = $wgOut->parse( '=='.wfMsgNoTrans( 'notitlematches' )."==\n" ); |
911 | 911 | if( $t->quickUserCan( 'create' ) && $t->quickUserCan( 'edit' ) ) { |
912 | | - $wgOut->addWikiMsg( 'noexactmatch', wfEscapeWikiText( $term ) ); |
| 912 | + $extra .= wfMsgExt( 'noexactmatch', 'parse', wfEscapeWikiText( $term ) ); |
913 | 913 | } else { |
914 | | - $wgOut->addWikiMsg( 'noexactmatch-nocreate', wfEscapeWikiText( $term ) ); |
| 914 | + $extra .= wfMsgExt( 'noexactmatch-nocreate', 'parse', wfEscapeWikiText( $term ) ); |
915 | 915 | } |
916 | 916 | |
917 | | - return $this->showResults( $term ); |
| 917 | + $this->showResults( $term, $extra ); |
918 | 918 | } |
919 | 919 | |
920 | 920 | /** |
921 | 921 | * @param string $term |
922 | | - * @public |
| 922 | + * @param string $extra Extra HTML to add after "did you mean" |
923 | 923 | */ |
924 | | - function showResults( $term ) { |
| 924 | + public function showResults( $term, $extra = '' ) { |
925 | 925 | wfProfileIn( __METHOD__ ); |
926 | 926 | global $wgOut, $wgUser; |
927 | 927 | $sk = $wgUser->getSkin(); |
— | — | @@ -953,6 +953,8 @@ |
954 | 954 | $wgOut->addHTML('<div class="searchdidyoumean">'.wfMsg('search-suggest',$suggestLink).'</div>'); |
955 | 955 | } |
956 | 956 | |
| 957 | + $wgOut->addHTML( $extra ); |
| 958 | + |
957 | 959 | $wgOut->addWikiMsg( 'searchresulttext' ); |
958 | 960 | |
959 | 961 | if( '' === trim( $term ) ) { |