[pLog-svn] r2513 - plog/trunk/class/view/admin

jondaley at devel.plogworld.net jondaley at devel.plogworld.net
Thu Sep 22 02:36:17 GMT 2005


Author: jondaley
Date: 2005-09-22 02:36:16 +0000 (Thu, 22 Sep 2005)
New Revision: 2513

Modified:
   plog/trunk/class/view/admin/adminpostslistview.class.php
Log:
editposts page now works, at least the date part, needed a hyphen in the date field.  Also, status is now set to proper init value

Modified: plog/trunk/class/view/admin/adminpostslistview.class.php
===================================================================
--- plog/trunk/class/view/admin/adminpostslistview.class.php	2005-09-22 02:34:23 UTC (rev 2512)
+++ plog/trunk/class/view/admin/adminpostslistview.class.php	2005-09-22 02:36:16 UTC (rev 2513)
@@ -81,7 +81,7 @@
             	            $t = new Timestamp();
                             $name = $this->_locale->formatDate( $t, $archiveDateFormat );
                             $monthStr = Array( "name" => $name, 
-                                       "date" => $this->_locale->formatDate($t, "%Y%m"));
+                                       "date" => $this->_locale->formatDate($t, "%Y-%m"));
                             array_push( $result, $monthStr );
                             $alreadyAdded = true;    
             	       }
@@ -94,7 +94,7 @@
                     $t->setMonth( $monthName );
                     $name = $this->_locale->formatDate( $t, $archiveDateFormat );
                     $monthStr = Array( "name" => $name, 
-                                       "date" => $this->_locale->formatDate($t, "%Y%m"));
+                                       "date" => $this->_locale->formatDate($t, "%Y-%m"));
                     array_push( $result, $monthStr );                    
                 }
             }
@@ -124,9 +124,9 @@
 			// fetch the different parameters that we are going to need
 			// to show the view...
 			$this->_showCategory = $this->_getParameter( $params, "showCategory", -1 );
-			$this->_showStatus   = $this->_getParameter( $params, "showStatus", 0 );
+			$this->_showStatus   = $this->_getParameter( $params, "showStatus", POST_STATUS_ALL );
             $this->_showUser   = $this->_getParameter( $params, "showUser", 0 );			
-            $this->_showMonth = $this->_getParameter( $params, "showMonth", $this->_locale->formatDate( new Timestamp(), "%Y%m" ));
+            $this->_showMonth = $this->_getParameter( $params, "showMonth", $this->_locale->formatDate( new Timestamp(), "%Y-%m" ));
 			$this->_searchTerms = $this->_getParameter( $params, "searchTerms", "");
 		}
 		




More information about the pLog-svn mailing list