* (bug 13407) MediaWiki:Powersearch is used in two places
* (bug 13403) Fix cache invalidation of history pages when old revisions change
* (bug 11563) Deprecated SearchMySQL4 class; merged code to SearchMySQL
+* (bug 12801) Fix link in subtitle message in AJAX search
=== API changes in 1.13 ===
$valid = (bool) $term_title;
$term_url = urlencode( $term );
- $term_diplay = htmlspecialchars( $valid ? $term_title->getFullText() : $term );
+ $term_normalized = $valid ? $term_title->getFullText() : $term;
+ $term_display = htmlspecialchars( $term );
$subtitlemsg = ( $valid ? 'searchsubtitle' : 'searchsubtitleinvalid' );
- $subtitle = wfMsgWikiHtml( $subtitlemsg, $term_diplay );
+ $subtitle = wfMsgExt( $subtitlemsg, array( 'parse' ), wfEscapeWikiText( $term_normalized ) );
$html = '<div id="searchTargetHide"><a onclick="Searching_Hide_Results();">'
. wfMsgHtml( 'hideresults' ) . '</a></div>'
. '<h1 class="firstHeading">'.wfMsgHtml('search')
if( $canSearch ) {
$html .= '<ul><li>'
. $sk->makeKnownLink( $wgContLang->specialPage( 'Search' ),
- wfMsgHtml( 'searchcontaining', $term_diplay ),
+ wfMsgHtml( 'searchcontaining', $term_display ),
"search={$term_url}&fulltext=Search" )
. '</li><li>' . $sk->makeKnownLink( $wgContLang->specialPage( 'Search' ),
- wfMsgHtml( 'searchnamed', $term_diplay ) ,
+ wfMsgHtml( 'searchnamed', $term_display ) ,
"search={$term_url}&go=Go" )
. "</li></ul>";
}
if( $r ) {
- $html .= "<h2>" . wfMsgHtml( 'articletitles', $term_diplay ) . "</h2>"
+ $html .= "<h2>" . wfMsgHtml( 'articletitles', $term_display ) . "</h2>"
. '<ul>' .$r .'</ul>' . $more;
}