Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -643,7 +643,8 @@ |
644 | 644 | $searchButton . |
645 | 645 | ' (' . wfMsgExt('searchmenu-help',array('parseinline') ) . ')' . |
646 | 646 | "</form>"; |
647 | | - $out .= wfMsgExt( 'searchmenu-prefix', array('parseinline'), $term ); |
| 647 | + if( $term ) |
| 648 | + $out .= wfMsgExt( 'searchmenu-prefix', array('parseinline'), $term ); |
648 | 649 | |
649 | 650 | return Xml::openElement( 'fieldset', array('id' => 'mw-searchoptions','style' => 'margin:0em;') ) . |
650 | 651 | Xml::element( 'legend', null, wfMsg('searchmenu-legend') ) . |
— | — | @@ -790,7 +791,8 @@ |
791 | 792 | $out .= Xml::submitButton( wfMsg( 'searchbutton' ), array( 'name' => 'fulltext' ) ); |
792 | 793 | $out .= ' (' . wfMsgExt('searchmenu-help',array('parseinline') ) . ')'; |
793 | 794 | $out .= Xml::closeElement( 'form' ); |
794 | | - $out .= wfMsgExt( 'searchmenu-prefix', array('parseinline'), $term ); |
| 795 | + if( $term ) |
| 796 | + $out .= wfMsgExt( 'searchmenu-prefix', array('parseinline'), $term ); |
795 | 797 | return Xml::openElement( 'fieldset', array('id' => 'mw-searchoptions','style' => 'margin:0em;') ) . |
796 | 798 | Xml::element( 'legend', null, wfMsg('searchmenu-legend') ) . |
797 | 799 | $this->formHeader($term) . $out . |