From e1885cf3e6e80f25355a95c33bb3e9857477d070 Mon Sep 17 00:00:00 2001 From: Rob Moen Date: Wed, 3 Dec 2014 15:07:44 -0800 Subject: [PATCH] Split things out of search element on Special:Search While keeping these in the same order, pulling them out of the form helps mobile display search suggestions on non RL devices. Change-Id: Id267f66485b95788e682b912e8d2540c826d83fd --- includes/specials/SpecialSearch.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index b1baf67db4..c55a667706 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -330,8 +330,9 @@ class SpecialSearch extends SpecialPage { Xml::openElement( 'div', array( 'id' => 'mw-search-top-table' ) ) . $this->shortDialog( $term, $num, $totalRes ) . Xml::closeElement( 'div' ) . - $this->formHeader( $term ) . - Xml::closeElement( 'form' ) + Xml::closeElement( 'form' ) . + $this->didYouMeanHtml . + $this->formHeader( $term ) ); $filePrefix = $wgContLang->getFormattedNsText( NS_FILE ) . ':'; @@ -1083,7 +1084,7 @@ class SpecialSearch extends SpecialPage { Xml::element( 'div', array( 'style' => 'clear:both' ), '', false ); } - return $out . $this->didYouMeanHtml; + return $out; } /** -- 2.20.1