SF.net SVN: phpwiki:[10972] trunk/lib/plugin/MostPopular.php

vargenau--- via phpwiki-checkins <[email protected]> Wed, 02 Feb 2022 18:07:25 +0000
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10972
          http://sourceforge.net/p/phpwiki/code/10972
Author:   vargenau
Date:     2022-02-02 18:07:25 +0000 (Wed, 02 Feb 2022)
Log Message:
-----------
lib/plugin/MostPopular.php: cleanup

Modified Paths:
--------------
    trunk/lib/plugin/MostPopular.php

Modified: trunk/lib/plugin/MostPopular.php
===================================================================
--- trunk/lib/plugin/MostPopular.php	2022-02-02 11:48:24 UTC (rev 10971)
+++ trunk/lib/plugin/MostPopular.php	2022-02-02 18:07:25 UTC (rev 10972)
@@ -39,20 +39,14 @@
         (
             PageList::supportedArgs(),
             array('pagename' => '[pagename]', // hackish
-                //'exclude'  => '',
                 'limit' => 20, // limit <0 returns least popular pages
                 'noheader' => false,
-                'sortby' => '-hits',
-                'info' => false,
-                //'paging'   => 'auto'
+                'sortby' => '-hits', // only pagename or hits. mtime not!
+                'info' => false // allows multiple columns:
+                                // info=mtime,hits,summary,version,author,locked,minor
             ));
     }
 
-    // info arg allows multiple columns
-    // info=mtime,hits,summary,version,author,locked,minor
-    // exclude arg allows multiple pagenames exclude=HomePage,RecentChanges
-    // sortby: only pagename or hits. mtime not!
-
     /**
      * @param WikiDB $dbi
      * @param string $argstr
@@ -89,7 +83,6 @@
         array_unshift($columns, 'hits');
 
         if (!$request->getArg('count')) {
-            //$args['count'] = $dbi->numPages(false,$exclude);
             $allpages = $dbi->mostPopular(0, $sortby);
             $args['count'] = $allpages->count();
         } else {

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