[evolvis-commits] r15511: Fix [#182] "Search the entire project" returns blank
mirabilos at evolvis.org
mirabilos at evolvis.org
Tue Mar 1 00:11:56 CET 2011
Author: mirabilos
Date: 2011-03-01 00:11:56 +0100 (Tue, 01 Mar 2011)
New Revision: 15511
Modified:
trunk/gforge_base/evolvisforge-5.1/src/www/search/include/renderers/FullProjectHtmlSearchRenderer.class.php
Log:
Fix [#182] "Search the entire project" returns blank
Modified: trunk/gforge_base/evolvisforge-5.1/src/www/search/include/renderers/FullProjectHtmlSearchRenderer.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/search/include/renderers/FullProjectHtmlSearchRenderer.class.php 2011-02-28 23:11:49 UTC (rev 15510)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/search/include/renderers/FullProjectHtmlSearchRenderer.class.php 2011-02-28 23:11:56 UTC (rev 15511)
@@ -132,6 +132,14 @@
$html .= $this->getPartResult($newsRenderer, 'short_news', _('News Search Results'));
}
+ if (! $html && ! $validLength) {
+ $html .= '<div class="error">'._('Error: search query too short').'</div>';
+ }
+
+ plugin_hook('full_search_engines', $this);
+ $plugin = plugin_manager_get_object();
+ $html .= $plugin->getReturnedValue('full_search_engines');
+
/*
$renderer = new ForumsHtmlSearchRenderer($this->words, $this->offset, $this->isExact, $this->groupId);
$html .= $this->getPartResult($renderer, 'short_forum', _('Forum Search Results'));
More information about the evolvis-commits
mailing list