[pLog-svn] r2094 - plog/branches/plog-1.1-ben/class/view
ork at devel.plogworld.net
ork at devel.plogworld.net
Sun May 29 15:59:42 GMT 2005
Author: ork
Date: 2005-05-29 15:59:42 +0000 (Sun, 29 May 2005)
New Revision: 2094
Modified:
plog/branches/plog-1.1-ben/class/view/blogview.class.php
plog/branches/plog-1.1-ben/class/view/errorview.class.php
Log:
moved 'now' to errorview as it is used on the error.template
Modified: plog/branches/plog-1.1-ben/class/view/blogview.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/view/blogview.class.php 2005-05-29 15:47:53 UTC (rev 2093)
+++ plog/branches/plog-1.1-ben/class/view/blogview.class.php 2005-05-29 15:59:42 UTC (rev 2094)
@@ -215,7 +215,6 @@
$this->setValue( 'locale', $this->_blogInfo->getLocale());
$this->setValue( 'version', Version::getVersion());
-// $this->setValue( 'now', new Timestamp());
$this->setValue( 'blog', $this->_blogInfo );
$this->setValue( 'blogsettings', $this->_blogInfo->getSettings());
$this->setValue( 'rss', new RssParser());
Modified: plog/branches/plog-1.1-ben/class/view/errorview.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/view/errorview.class.php 2005-05-29 15:47:53 UTC (rev 2093)
+++ plog/branches/plog-1.1-ben/class/view/errorview.class.php 2005-05-29 15:59:42 UTC (rev 2094)
@@ -1,6 +1,7 @@
<?php
include_once( PLOG_CLASS_PATH."class/view/blogview.class.php" );
+ include_once( PLOG_CLASS_PATH.'class/data/timestamp.class.php' );
define( "ERROR_TEMPLATE", "error" );
@@ -42,8 +43,10 @@
{
if(!empty($this->_message))
$this->setValue( "message", $this->_message );
+
+ $this->setValue( 'now', new Timestamp());
parent::render();
}
}
-?>
\ No newline at end of file
+?>
More information about the pLog-svn
mailing list