[pLog-svn] r6590 - plog/branches/lifetype-1.2/class/action/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Thu Jun 19 11:20:16 EDT 2008
Author: mark
Date: 2008-06-19 11:20:16 -0400 (Thu, 19 Jun 2008)
New Revision: 6590
Modified:
plog/branches/lifetype-1.2/class/action/admin/admineditarticlecategoriesaction.class.php
plog/branches/lifetype-1.2/class/action/admin/admineditcommentsaction.class.php
plog/branches/lifetype-1.2/class/action/admin/admineditglobalarticlecategoriesaction.class.php
plog/branches/lifetype-1.2/class/action/admin/admineditlinkcategoriesaction.class.php
plog/branches/lifetype-1.2/class/action/admin/admineditlinksaction.class.php
plog/branches/lifetype-1.2/class/action/admin/admineditpostsaction.class.php
Log:
We don't need to passing the default value in actions, these default value already take care by it's related views.
Modified: plog/branches/lifetype-1.2/class/action/admin/admineditarticlecategoriesaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/admineditarticlecategoriesaction.class.php 2008-06-19 08:28:34 UTC (rev 6589)
+++ plog/branches/lifetype-1.2/class/action/admin/admineditarticlecategoriesaction.class.php 2008-06-19 15:20:16 UTC (rev 6590)
@@ -23,9 +23,7 @@
$this->AdminAction( $actionInfo, $request );
$this->registerFieldValidator( "searchTerms", new StringValidator(), true);
- $this->setValidationErrorView( new AdminArticleCategoriesListView( $this->_blogInfo,
- Array( "searchTerms" => "" )
- ) );
+ $this->setValidationErrorView( new AdminArticleCategoriesListView( $this->_blogInfo ) );
$this->requirePermission( "view_categories" );
}
Modified: plog/branches/lifetype-1.2/class/action/admin/admineditcommentsaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/admineditcommentsaction.class.php 2008-06-19 08:28:34 UTC (rev 6589)
+++ plog/branches/lifetype-1.2/class/action/admin/admineditcommentsaction.class.php 2008-06-19 15:20:16 UTC (rev 6590)
@@ -72,9 +72,7 @@
if( !$article ) {
// if article does not exist we better return the comments list with default parameters
// instead of post list in original design.
- $view = new $this->_viewClass( $this->_blogInfo, Array( "article" => null,
- "showStatus" => -1,
- "searchTerms" => "" ));
+ $view = new $this->_viewClass( $this->_blogInfo );
$view->setErrorMessage( $this->_locale->tr("error_fetching_article" ));
}
else
Modified: plog/branches/lifetype-1.2/class/action/admin/admineditglobalarticlecategoriesaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/admineditglobalarticlecategoriesaction.class.php 2008-06-19 08:28:34 UTC (rev 6589)
+++ plog/branches/lifetype-1.2/class/action/admin/admineditglobalarticlecategoriesaction.class.php 2008-06-19 15:20:16 UTC (rev 6590)
@@ -27,9 +27,7 @@
$this->AdminAction( $actionInfo, $request );
$this->registerFieldValidator( "searchTerms", new StringValidator(), true);
- $this->setValidationErrorView( new AdminGlobalArticleCategoriesListView( $this->_blogInfo,
- Array( "searchTerms" => "" )
- ) );
+ $this->setValidationErrorView( new AdminGlobalArticleCategoriesListView( $this->_blogInfo ) );
$this->requireAdminPermission( "view_global_categories" );
}
Modified: plog/branches/lifetype-1.2/class/action/admin/admineditlinkcategoriesaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/admineditlinkcategoriesaction.class.php 2008-06-19 08:28:34 UTC (rev 6589)
+++ plog/branches/lifetype-1.2/class/action/admin/admineditlinkcategoriesaction.class.php 2008-06-19 15:20:16 UTC (rev 6590)
@@ -22,9 +22,7 @@
{
$this->AdminAction( $actionInfo, $request );
$this->registerFieldValidator( "searchTerms", new StringValidator(), true );
- $this->setValidationErrorView( new AdminLinkCategoriesListView( $this->_blogInfo,
- Array( "searchTerms" => "" )
- ) );
+ $this->setValidationErrorView( new AdminLinkCategoriesListView( $this->_blogInfo ) );
}
Modified: plog/branches/lifetype-1.2/class/action/admin/admineditlinksaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/admineditlinksaction.class.php 2008-06-19 08:28:34 UTC (rev 6589)
+++ plog/branches/lifetype-1.2/class/action/admin/admineditlinksaction.class.php 2008-06-19 15:20:16 UTC (rev 6590)
@@ -31,10 +31,7 @@
$this->registerFieldValidator( "searchTerms", new StringValidator(), true);
$blogSettings = $this->_blogInfo->getSettings();
$this->_linkCategoriesOrder = $blogSettings->getValue( "link_categories_order", MYLINKS_CATEGORIES_NO_ORDER );
- $this->setValidationErrorView( new AdminLinksListView( $this->_blogInfo,
- Array( "showCategory" => 0,
- "searchTerms" => "",
- "showOrder" => $this->_linkCategoriesOrder )));
+ $this->setValidationErrorView( new AdminLinksListView( $this->_blogInfo ) );
$this->requirePermission( "view_links" );
Modified: plog/branches/lifetype-1.2/class/action/admin/admineditpostsaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/admineditpostsaction.class.php 2008-06-19 08:28:34 UTC (rev 6589)
+++ plog/branches/lifetype-1.2/class/action/admin/admineditpostsaction.class.php 2008-06-19 15:20:16 UTC (rev 6590)
@@ -28,13 +28,7 @@
$this->registerFieldValidator( "showUser", new IntegerValidator(), true );
$this->registerFieldValidator( "showMonth", new IntegerValidator( true ), true );
$this->registerFieldValidator( "searchTerms", new StringValidator(), true );
- $this->setValidationErrorView( new AdminPostsListView( $this->_blogInfo,
- Array( "showCategory" => -1,
- "showStatus" => -1,
- "showUser" => 0,
- "showMonth" => -1,
- "searchTerms" => "" )
- ) );
+ $this->setValidationErrorView( new AdminPostsListView( $this->_blogInfo ) );
$this->requirePermission( "view_posts" );
}
More information about the pLog-svn
mailing list