[pLog-svn] r2093 - plog/branches/plog-1.1-ben/class/view
ork at devel.plogworld.net
ork at devel.plogworld.net
Sun May 29 15:47:54 GMT 2005
Author: ork
Date: 2005-05-29 15:47:53 +0000 (Sun, 29 May 2005)
New Revision: 2093
Modified:
plog/branches/plog-1.1-ben/class/view/blogview.class.php
Log:
we save time if we don't call the getBlogRequestGenerator() every time.. if the view is cached, we don't need it.. the rest really don't produce that much overhead :)
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:46:18 UTC (rev 2092)
+++ plog/branches/plog-1.1-ben/class/view/blogview.class.php 2005-05-29 15:47:53 UTC (rev 2093)
@@ -187,7 +187,7 @@
include_once( PLOG_CLASS_PATH.'class/misc/version.class.php' );
include_once( PLOG_CLASS_PATH.'class/xml/rssparser/rssparser.class.php' );
- if( !$this->isCached()) {
+ if( !$this->isCached() ) {
include_once( PLOG_CLASS_PATH.'class/data/plogcalendar.class.php' );
// and then add our stuff to the view...
@@ -197,6 +197,9 @@
$this->setValue( 'monthposts', $this->_getMonthPosts());
$this->setValue( 'articlecategories', $this->_getArticleCategories());
$this->generateCalendar( $this->getValue( 'Year' ), $this->getValue( 'Month' ));
+
+ $this->setValue( 'url', $this->_blogInfo->getBlogRequestGenerator());
+ $this->setValue( 'utils', $this->_blogInfo->getBlogRequestGenerator());
// also, let's not forget about the plugins...
// put the plugins in the context
@@ -214,8 +217,6 @@
$this->setValue( 'version', Version::getVersion());
// $this->setValue( 'now', new Timestamp());
$this->setValue( 'blog', $this->_blogInfo );
- $this->setValue( 'url', $this->_blogInfo->getBlogRequestGenerator());
- $this->setValue( 'utils', $this->_blogInfo->getBlogRequestGenerator());
$this->setValue( 'blogsettings', $this->_blogInfo->getSettings());
$this->setValue( 'rss', new RssParser());
More information about the pLog-svn
mailing list