capitalization, spacing (thanks robchurch)

This commit is contained in:
Ilmari Karonen 2006-07-02 23:07:02 +00:00
parent 2c37446577
commit f3d4d5ed5b
2 changed files with 2 additions and 2 deletions

View file

@ -136,7 +136,7 @@ function wfSajaxSearch( $term ) {
$more = '';
}
$subtitlemsg = ( Title::newFromtext($term) ? 'searchsubtitle' : 'searchsubtitleinvalid' );
$subtitlemsg = ( Title::newFromText($term) ? 'searchsubtitle' : 'searchsubtitleinvalid' );
$subtitle = $wgOut->parse( wfMsg( $subtitlemsg, wfEscapeWikiText($term) ) );
$term = htmlspecialchars( $term );

View file

@ -221,7 +221,7 @@ class SpecialSearch {
function setupPage( $term ) {
global $wgOut;
$wgOut->setPageTitle( wfMsg( 'searchresults' ) );
$subtitlemsg = ( Title::newFromtext($term) ? 'searchsubtitle' :'searchsubtitleinvalid' );
$subtitlemsg = ( Title::newFromText($term) ? 'searchsubtitle' : 'searchsubtitleinvalid' );
$wgOut->setSubtitle( $wgOut->parse( wfMsg( $subtitlemsg, wfEscapeWikiText($term) ) ) );
$wgOut->setArticleRelated( false );
$wgOut->setRobotpolicy( 'noindex,nofollow' );