[pLog-svn] r2275 - plog/trunk/class/action
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Tue Jun 28 13:21:15 GMT 2005
Author: oscar
Date: 2005-06-28 13:21:14 +0000 (Tue, 28 Jun 2005)
New Revision: 2275
Modified:
plog/trunk/class/action/rssaction.class.php
Log:
added a missing include and reorganized things a bit
Modified: plog/trunk/class/action/rssaction.class.php
===================================================================
--- plog/trunk/class/action/rssaction.class.php 2005-06-28 09:16:49 UTC (rev 2274)
+++ plog/trunk/class/action/rssaction.class.php 2005-06-28 13:21:14 UTC (rev 2275)
@@ -1,10 +1,7 @@
<?php
include_once( PLOG_CLASS_PATH."class/action/blogaction.class.php" );
- include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );
- include_once( PLOG_CLASS_PATH."class/view/rssview.class.php" );
- include_once( PLOG_CLASS_PATH."class/locale/locale.class.php" );
- include_once( PLOG_CLASS_PATH."class/locale/locales.class.php" );
+ include_once( PLOG_CLASS_PATH."class/view/rssview.class.php" );
/**
* \ingroup Action
@@ -30,7 +27,6 @@
function perform()
{
// fetch the articles for the given blog
- $articles = new Articles();
$blogSettings = $this->_blogInfo->getSettings();
$localeCode = $blogSettings->getValue( "locale" );
@@ -60,6 +56,12 @@
if( $this->_view->isCached()) {
return true;
}
+
+ include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );
+ include_once( PLOG_CLASS_PATH."class/locale/locales.class.php" );
+ include_once( PLOG_CLASS_PATH."class/data/timestamp.class.php" );
+
+ $articles = new Articles();
// create an instance of a locale object
$locale = Locales::getLocale( $localeCode );
More information about the pLog-svn
mailing list