From: <var...@us...> - 2014-10-02 13:43:25
|
Revision: 9159 http://sourceforge.net/p/phpwiki/code/9159 Author: vargenau Date: 2014-10-02 13:43:22 +0000 (Thu, 02 Oct 2014) Log Message: ----------- Put explicit warning message Modified Paths: -------------- trunk/lib/plugin/FullTextSearch.php trunk/lib/plugin/FuzzyPages.php trunk/lib/plugin/TitleSearch.php Modified: trunk/lib/plugin/FullTextSearch.php =================================================================== --- trunk/lib/plugin/FullTextSearch.php 2014-10-02 13:42:18 UTC (rev 9158) +++ trunk/lib/plugin/FullTextSearch.php 2014-10-02 13:43:22 UTC (rev 9159) @@ -86,7 +86,8 @@ $limit = $args['limit']; if (empty($s)) { - return HTML(); + return HTML::p(array('class' => 'warning'), + _("You must enter a search term.")); } $query = new TextSearchQuery($s, $case_exact, $regex); Modified: trunk/lib/plugin/FuzzyPages.php =================================================================== --- trunk/lib/plugin/FuzzyPages.php 2014-10-02 13:42:18 UTC (rev 9158) +++ trunk/lib/plugin/FuzzyPages.php 2014-10-02 13:43:22 UTC (rev 9159) @@ -159,8 +159,10 @@ { $args = $this->getArgs($argstr, $request); extract($args); + if (empty($s)) { - return HTML(); + return HTML::p(array('class' => 'warning'), + _("You must enter a search term.")); } if (defined('DEBUG') && DEBUG) { Modified: trunk/lib/plugin/TitleSearch.php =================================================================== --- trunk/lib/plugin/TitleSearch.php 2014-10-02 13:42:18 UTC (rev 9158) +++ trunk/lib/plugin/TitleSearch.php 2014-10-02 13:43:22 UTC (rev 9159) @@ -77,8 +77,10 @@ function run($dbi, $argstr, &$request, $basepage) { $args = $this->getArgs($argstr, $request); + if (empty($args['s'])) { - return HTML(); + return HTML::p(array('class' => 'warning'), + _("You must enter a search term.")); } if (empty($args['sortby'])) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |