From: <var...@us...> - 2021-12-09 17:12:01
|
Revision: 10762 http://sourceforge.net/p/phpwiki/code/10762 Author: vargenau Date: 2021-12-09 17:11:59 +0000 (Thu, 09 Dec 2021) Log Message: ----------- TitleSearch: argument "s" is mandatory, it is a string Modified Paths: -------------- trunk/lib/plugin/TitleSearch.php trunk/pgsrc/Help%2FTitleSearchPlugin Modified: trunk/lib/plugin/TitleSearch.php =================================================================== --- trunk/lib/plugin/TitleSearch.php 2021-12-09 17:08:08 UTC (rev 10761) +++ trunk/lib/plugin/TitleSearch.php 2021-12-09 17:11:59 UTC (rev 10762) @@ -53,7 +53,7 @@ // All PageList::supportedArgs, except 'pagename' $args = array_merge( PageList::supportedArgs(), // paging and more. - array('s' => false, + array('s' => '', 'auto_redirect' => false, 'noheader' => false, 'exclude' => false, @@ -115,12 +115,12 @@ } if (isset($args['limit']) && !is_limit($args['limit'])) { - return HTML::p(array('class' => "error"), + return HTML::p(array('class' => 'error'), _("Illegal “limit” argument: must be an integer or two integers separated by comma")); } if (empty($args['s'])) { - return HTML::p(array('class' => 'warning'), + return HTML::p(array('class' => 'error'), _("You must enter a search term.")); } Modified: trunk/pgsrc/Help%2FTitleSearchPlugin =================================================================== --- trunk/pgsrc/Help%2FTitleSearchPlugin 2021-12-09 17:08:08 UTC (rev 10761) +++ trunk/pgsrc/Help%2FTitleSearchPlugin 2021-12-09 17:11:59 UTC (rev 10762) @@ -1,4 +1,4 @@ -Date: Tue, 23 Feb 2021 14:45:30 +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%2FTitleSearchPlugin; @@ -29,7 +29,7 @@ |- | **s** | String to search -| //none// +| //none// (mandatory argument) |- | **auto_redirect** | Boolean. If true and only one page is found, this page is displayed immediately This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |