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

mark at devel.lifetype.net mark at devel.lifetype.net
Fri Jun 20 14:39:50 EDT 2008


Author: mark
Date: 2008-06-20 14:39:49 -0400 (Fri, 20 Jun 2008)
New Revision: 6602

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminaddlinkaction.class.php
Log:
The rssFeed can be empty.

Modified: plog/branches/lifetype-1.2/class/action/admin/adminaddlinkaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminaddlinkaction.class.php	2008-06-20 18:22:57 UTC (rev 6601)
+++ plog/branches/lifetype-1.2/class/action/admin/adminaddlinkaction.class.php	2008-06-20 18:39:49 UTC (rev 6602)
@@ -6,7 +6,6 @@
 	lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/data/validator/httpurlvalidator.class.php" );
-	lt_include( PLOG_CLASS_PATH."class/data/validator/emptyvalidator.class.php" );	
 	lt_include( PLOG_CLASS_PATH."class/view/admin/adminnewlinkview.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/view/admin/adminlinkslistview.class.php" );
 
@@ -39,7 +38,7 @@
 			// linkRssFeed will only be validated if it is available in the form
 			$this->registerFieldValidator( "linkRssFeed", new HttpUrlValidator(), true );
 			$this->registerFieldValidator( "linkCategoryId", new IntegerValidator());
-			$this->registerFieldValidator( "linkDescription", new StringValidator());
+			$this->registerFieldValidator( "linkDescription", new StringValidator(), true );
 			$view = new AdminNewLinkView( $this->_blogInfo );
 			$view->setErrorMessage( $this->_locale->tr("error_adding_link" ));
 			$this->setValidationErrorView( $view );



More information about the pLog-svn mailing list