[pLog-svn] r1862 - plog/trunk/class/action
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Sun Apr 17 20:51:02 GMT 2005
Author: oscar
Date: 2005-04-17 20:51:02 +0000 (Sun, 17 Apr 2005)
New Revision: 1862
Modified:
plog/trunk/class/action/blogaction.class.php
Log:
added support for the changes in PipelineResult.
Modified: plog/trunk/class/action/blogaction.class.php
===================================================================
--- plog/trunk/class/action/blogaction.class.php 2005-04-17 20:50:38 UTC (rev 1861)
+++ plog/trunk/class/action/blogaction.class.php 2005-04-17 20:51:02 UTC (rev 1862)
@@ -72,9 +72,17 @@
// if the pipeline blocked the request, then we have
// to let the user know
if( !$result->isValid()) {
- $message = $this->_locale->tr('error_you_have_been_blocked').'<br/><br/>';
- $message .= $result->getErrorMessage();
- $this->_view = new ErrorView( $this->_blogInfo, $message );
+ if( !$result->hasView()) {
+ // use the default view
+ $message = $this->_locale->tr('error_you_have_been_blocked').'<br/><br/>';
+ $message .= $result->getErrorMessage();
+ $this->_view = new ErrorView( $this->_blogInfo, $message );
+ }
+ else {
+ // if the filter that forced the processing to stop provided
+ // its own view, then use it
+ $this->_view = $result->getView();
+ }
$this->setCommonData();
$this->_view->render();
More information about the pLog-svn
mailing list