r6789 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r6788‎ | r6789 | r6790 >
Date:09:14, 23 December 2004
Author:kateturner
Status:old
Tags:
Comment:
missing name=
Modified paths:
  • /trunk/extensions/LuceneSearch.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LuceneSearch.php
@@ -90,7 +90,7 @@
9191 $wgOut->addWikiText(wfMsg('searchresulttext'));
9292 $wgOut->addHTML($this->showShortDialog($q));
9393
94 - if ($q != null && strlen($q) > 1) {
 94+ if ($q !== false && strlen($q) > 1) {
9595 if ($wgRequest->getText('go') === 'Go') {
9696 $t = SearchEngine::getNearMatch($q);
9797 if(!is_null($t)) {
@@ -341,7 +341,7 @@
342342 $searchField = "<div><input type='text' id='lsearchbox' onkeyup=\"resultType()\" "
343343 . "style='margin-left: 25%; width: 50%' value=\""
344344 . htmlspecialchars($term) ."\""
345 - . " autocomplete=\"off\" />\n"
 345+ . " autocomplete=\"off\" name=\"search\" />\n"
346346 . "<span id='loadStatus'></span>"
347347 . $searchButton
348348 . "<div id='results'></div></div>";

Status & tagging log