From ede303724ae19c89b46560fd0ed0b0a2500dbb9b Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 12 Jul 2005 14:57:04 +0000 Subject: [PATCH] FIX #655 : when user enter an empty search query: * show an empty search form * hide subtitle --- RELEASE-NOTES | 1 + includes/SpecialSearch.php | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index e9ca3b0670..2cd3631c76 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -560,6 +560,7 @@ of MediaWiki:Newpagetext) to &action=edit, if page is new. * Add serialized version number to image metadata cache records * (bug 2780) Fix thumbnail generation with GD for new image schema * (bug 2791) Slovene numeric format +* (bug 655) Provide empty search form when searching for nothing === Caveats === diff --git a/includes/SpecialSearch.php b/includes/SpecialSearch.php index 0af2925f1a..20948b96ae 100644 --- a/includes/SpecialSearch.php +++ b/includes/SpecialSearch.php @@ -134,9 +134,8 @@ class SpecialSearch { #if ( !$this->parseQuery() ) { if( '' === trim( $term ) ) { - $wgOut->addWikiText( - '==' . wfMsg( 'badquery' ) . "==\n" . - wfMsg( 'badquerytext' ) ); + $wgOut->setSubtitle( '' ); + $wgOut->addHTML( $this->powerSearchBox( $term ) ); wfProfileOut( $fname ); return; } -- 2.20.1