[xoops-cvslog 4582] CVS update: xoops2jp/html/modules/user/admin/forms

Zurück zum Archiv-Index

Minahito minah****@users*****
2006年 9月 24日 (日) 14:33:26 JST


Index: xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php
diff -u xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.15 xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.16
--- xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.15	Sun Aug 20 11:50:06 2006
+++ xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php	Sun Sep 24 14:33:26 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package user
- * @version $Id: UserAdminEditForm.class.php,v 1.1.2.15 2006/08/20 02:50:06 minahito Exp $
+ * @version $Id: UserAdminEditForm.class.php,v 1.1.2.16 2006/09/24 05:33:26 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -208,6 +208,11 @@
 		}
 	}
 	
+	/**
+	 * Checks the password field and the confirm password field. If it's a new
+	 * user registration, password is must. And, if password isn't empty, the
+	 * password and the confirm password have to be the same value.
+	 */
 	function validatePass()
 	{
 		if (strlen($this->get('pass'))) {
@@ -218,7 +223,7 @@
 			}
 		}
 		elseif($this->_mIsNew) {
-				$this->addErrorMessage(_MD_USER_ERROR_PASSWORD_REQUIRED);
+				$this->addErrorMessage(XCube_Utils::formatMessage(_MD_USER_ERROR_REQUIRED, _MD_USER_LANG_PASS));
 		}
 	}
 	


xoops-cvslog メーリングリストの案内
Zurück zum Archiv-Index