[pLog-svn] r2181 - plog/branches/plog-1.0.2/class/action

oscar at devel.plogworld.net oscar at devel.plogworld.net
Wed Jun 8 11:11:40 GMT 2005


Author: oscar
Date: 2005-06-08 11:11:40 +0000 (Wed, 08 Jun 2005)
New Revision: 2181

Modified:
   plog/branches/plog-1.0.2/class/action/addcommentaction.class.php
Log:
fixed a small issue


Modified: plog/branches/plog-1.0.2/class/action/addcommentaction.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/action/addcommentaction.class.php	2005-06-08 08:49:40 UTC (rev 2180)
+++ plog/branches/plog-1.0.2/class/action/addcommentaction.class.php	2005-06-08 11:11:40 UTC (rev 2181)
@@ -56,8 +56,9 @@
 			$this->registerFieldValidator( "userName", new StringValidator());
 			$this->_form->setFieldErrorMessage( "userName", $this->_locale->tr("error_comment_without_name" ));
 			$this->registerFieldValidator( "commentText", new StringValidator());
-			$this->registerFieldValidator( "userUrl", new HttpUrlValidator());
-			$this->_form->setFieldErrorMessage( "commentText", $this->_locale->tr("error_comment_without_text" ));
+			$this->_form->setFieldErrorMessage( "commentText", $this->_locale->tr("error_comment_without_text"));
+			$this->registerFieldValidator( "userUrl", new HttpUrlValidator(), true );
+			$this->_form->setFieldErrorMessage( "userUrl", $this->_locale->tr("Invalid URL" ));
 			$view = new ErrorView( $this->_blogInfo );
 			$view->setErrorMessage( "There has been an error validating the data!" );
 			$this->setValidationErrorView( $view );




More information about the pLog-svn mailing list