Index: trunk/extensions/LuceneSearch.php |
— | — | @@ -90,7 +90,7 @@ |
91 | 91 | $wgOut->addWikiText(wfMsg('searchresulttext')); |
92 | 92 | $wgOut->addHTML($this->showShortDialog($q)); |
93 | 93 | |
94 | | - if ($q != null && strlen($q) > 1) { |
| 94 | + if ($q !== false && strlen($q) > 1) { |
95 | 95 | if ($wgRequest->getText('go') === 'Go') { |
96 | 96 | $t = SearchEngine::getNearMatch($q); |
97 | 97 | if(!is_null($t)) { |
— | — | @@ -341,7 +341,7 @@ |
342 | 342 | $searchField = "<div><input type='text' id='lsearchbox' onkeyup=\"resultType()\" " |
343 | 343 | . "style='margin-left: 25%; width: 50%' value=\"" |
344 | 344 | . htmlspecialchars($term) ."\"" |
345 | | - . " autocomplete=\"off\" />\n" |
| 345 | + . " autocomplete=\"off\" name=\"search\" />\n" |
346 | 346 | . "<span id='loadStatus'></span>" |
347 | 347 | . $searchButton |
348 | 348 | . "<div id='results'></div></div>"; |