From: Brion Vibber Date: Wed, 19 Mar 2008 00:03:56 +0000 (+0000) Subject: * (bug 12801) Fix link in subtitle message in AJAX search X-Git-Tag: 1.31.0-rc.0~48999 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=0da8555d898f121afd5b5f2462481af71afcf6ac;p=lhc%2Fweb%2Fwiklou.git * (bug 12801) Fix link in subtitle message in AJAX search --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 166a0de74c..d2fba67f7c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -102,6 +102,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (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 === diff --git a/includes/AjaxFunctions.php b/includes/AjaxFunctions.php index ffd3168a8e..6b8bd21037 100644 --- a/includes/AjaxFunctions.php +++ b/includes/AjaxFunctions.php @@ -128,9 +128,10 @@ function wfSajaxSearch( $term ) { $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 = '
' . wfMsgHtml( 'hideresults' ) . '
' . '

'.wfMsgHtml('search') @@ -138,15 +139,15 @@ function wfSajaxSearch( $term ) { if( $canSearch ) { $html .= '"; } if( $r ) { - $html .= "

" . wfMsgHtml( 'articletitles', $term_diplay ) . "

" + $html .= "

" . wfMsgHtml( 'articletitles', $term_display ) . "

" . '' . $more; }