SF.net SVN: phpwiki:[10945] trunk/lib/plugin

vargenau--- via phpwiki-checkins <[email protected]> Wed, 26 Jan 2022 14:15:42 +0000
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10945
          http://sourceforge.net/p/phpwiki/code/10945
Author:   vargenau
Date:     2022-01-26 14:15:41 +0000 (Wed, 26 Jan 2022)
Log Message:
-----------
Arguments are strings, not booleans

Modified Paths:
--------------
    trunk/lib/plugin/WikiAdminChown.php
    trunk/lib/plugin/WikiAdminSelect.php

Modified: trunk/lib/plugin/WikiAdminChown.php
===================================================================
--- trunk/lib/plugin/WikiAdminChown.php	2022-01-26 12:15:11 UTC (rev 10944)
+++ trunk/lib/plugin/WikiAdminChown.php	2022-01-26 14:15:41 UTC (rev 10945)
@@ -46,7 +46,7 @@
         (
             parent::getDefaultArguments(),
             array(
-                'user' => false,
+                'user' => '',
                 /* Columns to include in listing */
                 'info' => 'pagename,owner,mtime',
             ));

Modified: trunk/lib/plugin/WikiAdminSelect.php
===================================================================
--- trunk/lib/plugin/WikiAdminSelect.php	2022-01-26 12:15:11 UTC (rev 10944)
+++ trunk/lib/plugin/WikiAdminSelect.php	2022-01-26 14:15:41 UTC (rev 10945)
@@ -52,10 +52,9 @@
     {
         return array('s' => '', // preselect pages
             /* select pages by meta-data: */
-            'author' => false,
-            'owner' => false,
-            'creator' => false,
-            'only' => '',
+            'author' => '',
+            'owner' => '',
+            'creator' => '',
             'exclude' => '',
             'info' => 'most',
             'sortby' => 'pagename',
@@ -90,7 +89,6 @@
      * Preselect a list of pagenames by the supporting the following args:
      * 's': comma-separated list of pagename wildcards
      * 'author', 'owner', 'creator': from WikiDB_Page
-     * 'only: forgot what the difference to 's' was.
      * Sets $this->_list, which is picked up by collectPages() and is a default for p[]
      *
      * @param array $args
@@ -110,9 +108,9 @@
             $sl = PageList::allPagesByAuthor($args['author'], false, $args['sortby'], $args['limit'], $args['exclude']);
         } elseif (!empty($args['creator'])) {
             $sl = PageList::allPagesByCreator($args['creator'], false, $args['sortby'], $args['limit'], $args['exclude']);
-        } elseif (!empty($args['s']) or !empty($args['only'])) {
+        } elseif (!empty($args['s'])) {
             // all pages by name
-            $sl = explodePageList(empty($args['only']) ? $args['s'] : $args['only']);
+            $sl = explodePageList($args['s']);
         }
         $this->_list = array();
         if (!empty($sl)) {

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.