logo       


CVS: phpwiki/lib/plugin RecentComments.php,1.1,1.2: msg#00167

Subject: CVS: phpwiki/lib/plugin RecentComments.php,1.1,1.2
Update of /cvsroot/phpwiki/phpwiki/lib/plugin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20434

Modified Files:
        RecentComments.php 
Log Message:
fixed RecentComments

Index: RecentComments.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/RecentComments.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -2 -b -p -d -r1.1 -r1.2
--- RecentComments.php  14 May 2004 17:33:12 -0000      1.1
+++ RecentComments.php  14 May 2004 17:40:56 -0000      1.2
@@ -25,5 +25,4 @@ extends WikiPlugin_RecentChanges
         $args = WikiPlugin_RecentChanges::getDefaultArguments();
         //else $args = parent::getDefaultArguments();
-        $args['type'] = 'RecentComments';
         $args['show_minor'] = false;
         $args['show_all'] = true;
@@ -78,6 +77,5 @@ class RecentCommentsRevisionIterator ext
        if (!empty($this->comments) and $this->_current) {
             if (isset($this->comments[$this->_current])) {
-                $this->_current++;
-                return $this->comments[$this->_current];
+                return $this->comments[$this->_current++];
             } else {
                $this->_current = 0;
@@ -87,9 +85,10 @@ class RecentCommentsRevisionIterator ext
             $this->comments = $this->_blog->findBlogs($this->_wikidb, 
$rev->getPageName(), 'comment');
             if ($this->comments) {
+                if (count($this->comments) > 2)
                 usort($this->comments, array("WikiPlugin_WikiBlog",
                                          "cmp"));
                 if (isset($this->comments[$this->_current])) {
                     $this->_current++;
-                    return $this->comments[$this->_current];
+                    return $rev;
                 }
             } else {
@@ -104,6 +103,6 @@ class RecentCommentsRevisionIterator ext
 
 // $Log$
-// Revision 1.1  2004/05/14 17:33:12  rurban
-// new plugin RecentChanges
+// Revision 1.2  2004/05/14 17:40:56  rurban
+// fixed RecentComments
 //
 



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe