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

mark at devel.lifetype.net mark at devel.lifetype.net
Tue Jul 1 01:43:33 EDT 2008


Author: mark
Date: 2008-07-01 01:43:33 -0400 (Tue, 01 Jul 2008)
New Revision: 6690

Modified:
   plog/branches/lifetype-1.2/class/action/addcommentaction.class.php
   plog/branches/lifetype-1.2/class/action/viewalbumaction.class.php
   plog/branches/lifetype-1.2/class/action/viewarticleaction.class.php
   plog/branches/lifetype-1.2/class/action/viewarticletrackbacksaction.class.php
Log:
Replace StringValidator( false ) to StringValidator(). Use it's default value.

Modified: plog/branches/lifetype-1.2/class/action/addcommentaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/addcommentaction.class.php	2008-07-01 05:42:15 UTC (rev 6689)
+++ plog/branches/lifetype-1.2/class/action/addcommentaction.class.php	2008-07-01 05:43:33 UTC (rev 6690)
@@ -72,7 +72,7 @@
 			$this->_form->setFieldErrorMessage( "parentId", $this->_locale->tr("error_incorrect_article_id" ));
 			$this->registerFieldValidator( "userEmail", new EmailValidator(), true );
 			$this->_form->setFieldErrorMessage( "userEmail", $this->_locale->tr("error_incorrect_email_address" ));
-			$this->registerFieldValidator( "userName", new StringValidator( false ));
+			$this->registerFieldValidator( "userName", new StringValidator());
 			$this->_form->setFieldErrorMessage( "userName", $this->_locale->tr("error_comment_without_name" ));
 			$this->registerFieldValidator( "commentText", new StringValidator( true ));
 			$this->_form->setFieldErrorMessage( "commentText", $this->_locale->tr("error_comment_without_text"));

Modified: plog/branches/lifetype-1.2/class/action/viewalbumaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/viewalbumaction.class.php	2008-07-01 05:42:15 UTC (rev 6689)
+++ plog/branches/lifetype-1.2/class/action/viewalbumaction.class.php	2008-07-01 05:43:33 UTC (rev 6690)
@@ -25,7 +25,7 @@
 			$this->BlogAction( $actionInfo, $request );
 			
 			$this->registerFieldValidator( "albumId", new IntegerValidator(), true );
-			$this->registerFieldValidator( "albumName", new StringValidator( false ), true );
+			$this->registerFieldValidator( "albumName", new StringValidator(), true );
 			
 			$this->setValidationErrorView( new ErrorView( $this->_blogInfo, "error_fetching_album" ));
         }

Modified: plog/branches/lifetype-1.2/class/action/viewarticleaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/viewarticleaction.class.php	2008-07-01 05:42:15 UTC (rev 6689)
+++ plog/branches/lifetype-1.2/class/action/viewarticleaction.class.php	2008-07-01 05:43:33 UTC (rev 6690)
@@ -32,9 +32,9 @@
 			$this->BlogAction( $actionInfo, $request );
 			
 			$this->registerFieldValidator( "articleId", new IntegerValidator(), true );
-			$this->registerFieldValidator( "articleName", new StringValidator( false ), true );
+			$this->registerFieldValidator( "articleName", new StringValidator(), true );
 			$this->registerFieldValidator( "postCategoryId", new IntegerValidator(), true );
-			$this->registerFieldValidator( "postCategoryName", new StringValidator( false ), true );
+			$this->registerFieldValidator( "postCategoryName", new StringValidator(), true );
 			$this->registerFieldValidator( "userId", new IntegerValidator(), true );
 			$this->registerFieldValidator( "userName", new UsernameValidator(), true );
             $this->registerFieldValidator( "Date", new IntegerValidator(), true );

Modified: plog/branches/lifetype-1.2/class/action/viewarticletrackbacksaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/viewarticletrackbacksaction.class.php	2008-07-01 05:42:15 UTC (rev 6689)
+++ plog/branches/lifetype-1.2/class/action/viewarticletrackbacksaction.class.php	2008-07-01 05:43:33 UTC (rev 6690)
@@ -17,7 +17,7 @@
 	{
 	
         var $_articleId;
-	var $_articleName;
+		var $_articleName;
 		var $_categoryId;
 		var $_categoryName;
 		var $_userId;
@@ -29,9 +29,9 @@
 			$this->BlogAction( $actionInfo, $request );
 			
 			$this->registerFieldValidator( "articleId", new IntegerValidator(), true );
-			$this->registerFieldValidator( "articleName", new StringValidator( false ), true );
+			$this->registerFieldValidator( "articleName", new StringValidator(), true );
 			$this->registerFieldValidator( "postCategoryId", new IntegerValidator(), true );
-			$this->registerFieldValidator( "postCategoryName", new StringValidator( false ), true );
+			$this->registerFieldValidator( "postCategoryName", new StringValidator(), true );
 			$this->registerFieldValidator( "userId", new IntegerValidator(), true );
 			$this->registerFieldValidator( "userName", new UsernameValidator(), true );
 



More information about the pLog-svn mailing list