[pLog-svn] r5338 - plog/branches/lifetype-1.2/class/action
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Tue Apr 24 05:11:27 EDT 2007
Author: jondaley
Date: 2007-04-24 05:11:27 -0400 (Tue, 24 Apr 2007)
New Revision: 5338
Modified:
plog/branches/lifetype-1.2/class/action/viewarticletrackbacksaction.class.php
Log:
_setErrorView() doesn't exist in this class. setCommonData() even when cached (mantis# 1286)
Modified: plog/branches/lifetype-1.2/class/action/viewarticletrackbacksaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/viewarticletrackbacksaction.class.php 2007-04-24 09:09:15 UTC (rev 5337)
+++ plog/branches/lifetype-1.2/class/action/viewarticletrackbacksaction.class.php 2007-04-24 09:11:27 UTC (rev 5338)
@@ -74,7 +74,8 @@
"date" => $this->_date ));
if( $this->_view->isCached()) {
- return true;
+ $this->setCommonData();
+ return true;
}
lt_include( PLOG_CLASS_PATH."class/dao/articles.class.php" );
@@ -92,7 +93,9 @@
$users = new Users();
$user = $users->getUserInfoFromUsername( $this->_userName );
if( !$user ) {
- $this->_setErrorView();
+ $this->_view = new ErrorView( $this->_blogInfo );
+ $this->_view->setValue( "message", "error_incorrect_user" );
+ $this->setCommonData();
return false;
}
// if there was a user, use his/her id
@@ -103,7 +106,9 @@
$categories = new ArticleCategories();
$category = $categories->getCategoryByName( $this->_categoryName, $this->_blogInfo->getId());
if( !$category ) {
- $this->_setErrorView();
+ $this->_view = new ErrorView( $this->_blogInfo );
+ $this->_view->setValue( "message", "error_fetching_category" );
+ $this->setCommonData();
return false;
}
// if there was a user, use his/her id
More information about the pLog-svn
mailing list