capitalization, spacing (thanks robchurch)
This commit is contained in:
parent
2c37446577
commit
f3d4d5ed5b
2 changed files with 2 additions and 2 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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' );
|
||||
|
|
|
|||
Loading…
Reference in a new issue