[pLog-svn] r6581 - plog/branches/lifetype-1.2/class/action/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Thu Jun 19 02:09:17 EDT 2008
Author: mark
Date: 2008-06-19 02:09:17 -0400 (Thu, 19 Jun 2008)
New Revision: 6581
Modified:
plog/branches/lifetype-1.2/class/action/admin/admineditlinkcategoriesaction.class.php
Log:
Validate searchTerms
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 06:02:05 UTC (rev 6580)
+++ plog/branches/lifetype-1.2/class/action/admin/admineditlinkcategoriesaction.class.php 2008-06-19 06:09:17 UTC (rev 6581)
@@ -1,7 +1,8 @@
<?php
lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
- lt_include( PLOG_CLASS_PATH."class/view/admin/adminlinkcategorieslistview.class.php" );
+ lt_include( PLOG_CLASS_PATH."class/view/admin/adminlinkcategorieslistview.class.php" );
+ lt_include( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );
lt_include( PLOG_CLASS_PATH."class/data/filter/htmlfilter.class.php" );
/**
@@ -19,7 +20,12 @@
*/
function AdminEditLinkCategoriesAction( $actionInfo, $request )
{
- $this->AdminAction( $actionInfo, $request );
+ $this->AdminAction( $actionInfo, $request );
+ $this->registerFieldValidator( "searchTerms", new StringValidator(), true );
+ $this->setValidationErrorView( new AdminLinkCategoriesListView( $this->_blogInfo,
+ Array( "searchTerms" => "" )
+ ) );
+
}
/**
More information about the pLog-svn
mailing list