[pLog-svn] r1402 - plog/trunk/class/net

oscar at devel.plogworld.net oscar at devel.plogworld.net
Sat Mar 12 09:31:24 GMT 2005


Author: oscar
Date: 2005-03-12 09:31:23 +0000 (Sat, 12 Mar 2005)
New Revision: 1402

Modified:
   plog/trunk/class/net/customrequestgenerator.class.php
Log:
fixed the method CustomRequestGenerator::getArchiveLink() to solve issue 327 (http://bugs.plogworld.net/view.php?id=327)

Modified: plog/trunk/class/net/customrequestgenerator.class.php
===================================================================
--- plog/trunk/class/net/customrequestgenerator.class.php	2005-03-11 16:14:34 UTC (rev 1401)
+++ plog/trunk/class/net/customrequestgenerator.class.php	2005-03-12 09:31:23 UTC (rev 1402)
@@ -91,7 +91,12 @@
 							 "{blogowner}" => $ownerInfo->getUsername(),
                              "{blogid}" => $this->_blogInfo->getId());
 			if( strlen($date) == 6 ) $params["{day}"] = "";
-			else $params["{day}"] = $t->getDay();
+			else {
+				$day = $t->getDay();
+				if( $day < 10 )
+					$day = "0".$day;			
+				$params["{day}"] = $day;
+			}
                              
             $archiveLink = $this->getBaseUrl().$this->_replaceTags( $archiveLinkFormat, $params );
             




More information about the pLog-svn mailing list