[pLog-svn] r6588 - plog/branches/lifetype-1.2/class/action/admin

mark at devel.lifetype.net mark at devel.lifetype.net
Thu Jun 19 04:23:39 EDT 2008


Author: mark
Date: 2008-06-19 04:23:39 -0400 (Thu, 19 Jun 2008)
New Revision: 6588

Modified:
   plog/branches/lifetype-1.2/class/action/admin/admineditarticlecategoryaction.class.php
Log:
We don't need these registerField, and validators here.

Modified: plog/branches/lifetype-1.2/class/action/admin/admineditarticlecategoryaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/admineditarticlecategoryaction.class.php	2008-06-19 07:53:54 UTC (rev 6587)
+++ plog/branches/lifetype-1.2/class/action/admin/admineditarticlecategoryaction.class.php	2008-06-19 08:23:39 UTC (rev 6588)
@@ -4,9 +4,7 @@
     lt_include( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" );
     lt_include( PLOG_CLASS_PATH."class/view/admin/adminarticlecategorieslistview.class.php" );
     lt_include( PLOG_CLASS_PATH."class/dao/articlecategories.class.php" );
-	lt_include( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
-	lt_include( PLOG_CLASS_PATH."class/data/validator/emptyvalidator.class.php" );
 
     /**
      * \ingroup Action
@@ -29,8 +27,7 @@
 			
 			// stuff for the data validation
 			$this->registerFieldValidator( "categoryId", new IntegerValidator());
-			$this->_form->registerField( "categoryName" );
-			$this->_form->registerField( "categoryDescription" );
+
 			$errorView = new AdminArticleCategoriesListView( $this->_blogInfo );
 			$errorView->setErrorMessage( $this->_locale->tr("error_incorrect_category_id"));
 			$this->setValidationErrorView( $errorView );



More information about the pLog-svn mailing list