SF.net SVN: phpwiki:[10762] trunk

vargenau--- via phpwiki-checkins <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
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.



_______________________________________________
phpwiki-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpwiki-checkins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.