Merge "Remove redundant input from search form"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 5 Mar 2017 16:28:22 +0000 (16:28 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 5 Mar 2017 16:28:22 +0000 (16:28 +0000)
includes/widget/search/SearchFormWidget.php

index b8d415f..a7407a0 100644 (file)
@@ -206,16 +206,13 @@ class SearchFormWidget {
         */
        protected function optionsHtml( $term, $isPowerSearch, $profile ) {
                $html = '';
-               $opts = [
-                       'profile' => $profile,
-               ];
 
                if ( $isPowerSearch ) {
-                       $html .= $this->powerSearchBox( $term, $opts );
+                       $html .= $this->powerSearchBox( $term, [] );
                } else {
                        $form = '';
                        Hooks::run( 'SpecialSearchProfileForm', [
-                               $this->specialSearch, &$form, $profile, $term, $opts
+                               $this->specialSearch, &$form, $profile, $term, []
                        ] );
                        $html .= $form;
                }