[pLog-svn] r6637 - plog/branches/lifetype-1.2/class/action/admin
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Sat Jun 21 16:03:26 EDT 2008
Author: jondaley
Date: 2008-06-21 16:03:26 -0400 (Sat, 21 Jun 2008)
New Revision: 6637
Modified:
plog/branches/lifetype-1.2/class/action/admin/adminpreviewpostaction.class.php
Log:
Preview now validates data, so it needs an error view
Modified: plog/branches/lifetype-1.2/class/action/admin/adminpreviewpostaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminpreviewpostaction.class.php 2008-06-21 19:55:01 UTC (rev 6636)
+++ plog/branches/lifetype-1.2/class/action/admin/adminpreviewpostaction.class.php 2008-06-21 20:03:26 UTC (rev 6637)
@@ -2,6 +2,7 @@
lt_include( PLOG_CLASS_PATH.'class/action/admin/adminpostmanagementcommonaction.class.php' );
lt_include( PLOG_CLASS_PATH.'class/view/viewarticleview.class.php' );
+ lt_include( PLOG_CLASS_PATH.'class/view/admin/adminerrorview.class.php' );
lt_include( PLOG_CLASS_PATH.'class/dao/article.class.php' );
/**
@@ -25,6 +26,11 @@
function AdminPreviewPostAction( $actionInfo, $request )
{
$this->AdminPostManagementCommonAction( $actionInfo, $request );
+
+ // TODO: not the best error message, but at least it displays something
+ $view = new AdminErrorView( $this->_blogInfo, Array( 'random' => md5(time())));
+ $view->setMessage( $this->_locale->tr("error_adding_post"));
+ $this->setValidationErrorView( $view );
}
/**
More information about the pLog-svn
mailing list