From: <var...@us...> - 2021-12-09 17:14:11
|
Revision: 10763 http://sourceforge.net/p/phpwiki/code/10763 Author: vargenau Date: 2021-12-09 17:14:09 +0000 (Thu, 09 Dec 2021) Log Message: ----------- FullTextSearch: argument "s" is mandatory, it is a string Modified Paths: -------------- trunk/lib/plugin/FullTextSearch.php trunk/pgsrc/Help%2FFullTextSearchPlugin Modified: trunk/lib/plugin/FullTextSearch.php =================================================================== --- trunk/lib/plugin/FullTextSearch.php 2021-12-09 17:11:59 UTC (rev 10762) +++ trunk/lib/plugin/FullTextSearch.php 2021-12-09 17:14:09 UTC (rev 10763) @@ -49,13 +49,13 @@ // All PageList::supportedArgs, except 'pagename' $args = array_merge( PageList::supportedArgs(), // paging and more. - array('s' => false, + array('s' => '', 'hilight' => true, 'case_exact' => false, 'regex' => 'auto', 'sortby' => '-hi_content', 'noheader' => false, - 'exclude' => false, // comma-separated list of glob + 'exclude' => '', // comma-separated list of glob 'quiet' => true)); // be less verbose unset($args['pagename']); return $args; @@ -73,7 +73,7 @@ $args = $this->getArgs($argstr, $request); if (empty($args['s'])) { - return HTML::p(array('class' => 'warning'), + return HTML::p(array('class' => 'error'), _("You must enter a search term.")); } extract($args); Modified: trunk/pgsrc/Help%2FFullTextSearchPlugin =================================================================== --- trunk/pgsrc/Help%2FFullTextSearchPlugin 2021-12-09 17:11:59 UTC (rev 10762) +++ trunk/pgsrc/Help%2FFullTextSearchPlugin 2021-12-09 17:14:09 UTC (rev 10763) @@ -1,4 +1,4 @@ -Date: Sat, 20 Feb 2021 11:52:37 +0000 +Date: Thu, 9 Dec 2021 18:08:50 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.6.0) Content-Type: application/x-phpwiki; pagename=Help%2FFullTextSearchPlugin; @@ -26,7 +26,7 @@ |- | **s** | The search term -| //none// +| //none// (mandatory argument) |- | **hilight** | Boolean. If true, highlight results. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |