[pLog-svn] r1711 - in plog/branches/plog-1.1-ben/class: action template template/templatesets view/admin

ork at devel.plogworld.net ork at devel.plogworld.net
Mon Apr 4 17:53:18 GMT 2005


Author: ork
Date: 2005-04-04 17:53:17 +0000 (Mon, 04 Apr 2005)
New Revision: 1711

Modified:
   plog/branches/plog-1.1-ben/class/action/blogaction.class.php
   plog/branches/plog-1.1-ben/class/action/defaultaction.class.php
   plog/branches/plog-1.1-ben/class/template/template.class.php
   plog/branches/plog-1.1-ben/class/template/templatesets/templatesetstorage.class.php
   plog/branches/plog-1.1-ben/class/view/admin/adminpostslistview.class.php
Log:
mainly organized includes


Modified: plog/branches/plog-1.1-ben/class/action/blogaction.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/action/blogaction.class.php	2005-04-04 17:50:08 UTC (rev 1710)
+++ plog/branches/plog-1.1-ben/class/action/blogaction.class.php	2005-04-04 17:53:17 UTC (rev 1711)
@@ -1,13 +1,13 @@
 <?php
 
-	include_once( PLOG_CLASS_PATH."class/action/action.class.php" );
+    include_once( PLOG_CLASS_PATH."class/action/action.class.php" );
     include_once( PLOG_CLASS_PATH."class/config/config.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
     include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
     include_once( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" );
     include_once( PLOG_CLASS_PATH."class/security/pipeline.class.php" );
-	include_once( PLOG_CLASS_PATH."class/net/http/subdomains.class.php" );
-	include_once( PLOG_CLASS_PATH."class/dao/referers.class.php" );
+    include_once( PLOG_CLASS_PATH."class/net/http/subdomains.class.php" );
+    include_once( PLOG_CLASS_PATH."class/dao/referers.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );	
 
     /**
@@ -37,14 +37,14 @@
          *
          *
          */
-		function BlogAction( $actionInfo, $request )
+        function BlogAction( $actionInfo, $request )
         {
-        	$this->Action( $actionInfo, $request );
+            $this->Action( $actionInfo, $request );
 
             // we use the HttpVars package since then we can access the session object
             // independently wether we're using php ver. < 4.1.0 or not
             $session = HttpVars::getSession();
-        	$this->_session = $session['SessionInfo'];
+            $this->_session = $session['SessionInfo'];
 
             $this->_config =& Config::getConfig();
 
@@ -204,10 +204,15 @@
                 $day = substr( $date, 6, 2);
             }
             else {
-            		$t = new Timestamp();
-                	$year = $t->getYear();
-                	$month = $t->getMonth();
-                	$day = $t->getDay();
+                    // to much overhead for just getting the current date
+                    // TBD: but we might need to read the timezone to enter a valid date.. not sure ..
+            		// $t = new Timestamp();
+                	// $year = $t->getYear();
+                    $year = date('Y');
+                	// $month = $t->getMonth();
+                    $month = date('m');
+                	// $day = $t->getDay();
+                    $day = date('d');
             }
 
             $this->_session->setValue( 'Year', $year );

Modified: plog/branches/plog-1.1-ben/class/action/defaultaction.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/action/defaultaction.class.php	2005-04-04 17:50:08 UTC (rev 1710)
+++ plog/branches/plog-1.1-ben/class/action/defaultaction.class.php	2005-04-04 17:53:17 UTC (rev 1711)
@@ -75,6 +75,8 @@
 				return true;
 			}
 
+            include_once( PLOG_CLASS_PATH."class/data/timestamp.class.php" );
+
             // if we got a category name instead of a category id, then we
             // should first look up this category in the database and see if
             // it exists

Modified: plog/branches/plog-1.1-ben/class/template/template.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/template/template.class.php	2005-04-04 17:50:08 UTC (rev 1710)
+++ plog/branches/plog-1.1-ben/class/template/template.class.php	2005-04-04 17:53:17 UTC (rev 1711)
@@ -53,7 +53,8 @@
         function Template( $templateFile )
         {
             // initialize logging
-            $this->log =& LoggerManager::getLogger( "default" );
+            // TBD: we need define a global logging switch like logging_enabled
+            // $this->log =& LoggerManager::getLogger( "default" );
 
             // create the Smarty object and set the security values
             $this->Smarty();

Modified: plog/branches/plog-1.1-ben/class/template/templatesets/templatesetstorage.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/template/templatesets/templatesetstorage.class.php	2005-04-04 17:50:08 UTC (rev 1710)
+++ plog/branches/plog-1.1-ben/class/template/templatesets/templatesetstorage.class.php	2005-04-04 17:53:17 UTC (rev 1711)
@@ -424,4 +424,4 @@
 			return $url;
 		}
 	}
-?>
\ No newline at end of file
+?>

Modified: plog/branches/plog-1.1-ben/class/view/admin/adminpostslistview.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/view/admin/adminpostslistview.class.php	2005-04-04 17:50:08 UTC (rev 1710)
+++ plog/branches/plog-1.1-ben/class/view/admin/adminpostslistview.class.php	2005-04-04 17:53:17 UTC (rev 1711)
@@ -6,6 +6,7 @@
     include_once( PLOG_CLASS_PATH."class/dao/articlecategories.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/articlestatus.class.php" );
     include_once( PLOG_CLASS_PATH."class/data/pager/pager.class.php" );
+    include_once( PLOG_CLASS_PATH.'class/data/timestamp.class.php' );
 	
     /**
      * \ingroup View
@@ -199,4 +200,4 @@
 			parent::render();
 		}
 	}
-?>
\ No newline at end of file
+?>




More information about the pLog-svn mailing list