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

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat Jun 21 14:44:04 EDT 2008


Author: jondaley
Date: 2008-06-21 14:44:04 -0400 (Sat, 21 Jun 2008)
New Revision: 6623

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminupdateuserprofileaction.class.php
Log:
noted unused(?) variables

Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdateuserprofileaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdateuserprofileaction.class.php	2008-06-21 18:43:24 UTC (rev 6622)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdateuserprofileaction.class.php	2008-06-21 18:44:04 UTC (rev 6623)
@@ -36,15 +36,17 @@
 			// data validation
 			$this->registerFieldValidator( "userFullName", new StringValidator(),true );
 			$this->registerFieldValidator( "userEmail", new EmailValidator() );
-			$this->registerFieldValidator( "userPictureId", new IntegerValidator() );
 			$this->registerFieldValidator( "userId", new IntegerValidator() );
 			$this->registerFieldValidator( "userAbout", new StringValidator(), true );
 			$this->registerFieldValidator( "userIsSiteAdmin", new IntegerValidator(), true );
-			$this->registerFieldValidator( "userName", new UsernameValidator());
 			$this->registerFieldValidator( "userPermissions", new ArrayValidator( new IntegerValidator() ), true );
 			$this->registerFieldValidator( "userProfilePassword", new PasswordValidator(), true );
 			$this->registerFieldValidator( "userStatus", new IntegerValidator());
 
+                // TODO: these aren't used in this class, but they are in the form
+			$this->registerFieldValidator( "userPictureId", new IntegerValidator() );
+			$this->registerFieldValidator( "userName", new UsernameValidator());
+
 			$view = new AdminEditSiteUserView( $this->_blogInfo );
 			$view->setErrorMessage( $this->_locale->tr("error_updating_user"));
 			$this->setValidationErrorView( $view );



More information about the pLog-svn mailing list