Minahito
minah****@users*****
2006年 2月 2日 (木) 17:50:12 JST
Index: xoops2jp/html/modules/user/forms/EditUserForm.class.php diff -u xoops2jp/html/modules/user/forms/EditUserForm.class.php:1.1.2.7 xoops2jp/html/modules/user/forms/EditUserForm.class.php:1.1.2.8 --- xoops2jp/html/modules/user/forms/EditUserForm.class.php:1.1.2.7 Sat Jan 28 03:07:44 2006 +++ xoops2jp/html/modules/user/forms/EditUserForm.class.php Thu Feb 2 17:50:12 2006 @@ -96,8 +96,8 @@ if(strlen($this->getVar('pass'))>0||strlen($this->getVar('vpass'))>0) if($this->getVar('pass')!=$this->getVar('vpass')) { $this->addErrorMessage(_MD_USER_ERROR_PASSWORD); - $this->setVar('pass',null); // reset - $this->setVar('vpass',null); + $this->set('pass',null); // reset + $this->set('vpass',null); } } @@ -106,34 +106,34 @@ //Corner-cutting $vars=$user->getProperties(); foreach($vars as $key=>$val) { - $this->setVar($key,$val); + $this->set($key,$val); } - $this->setVar('pass',null); - $this->setVar('vpass',null); + $this->set('pass',null); + $this->set('vpass',null); } function update(&$user) { - $user->setVar('name',$this->getVar('name')); - $user->setVar('email',$this->getVar('email')); - $user->setVar('user_viewemail',$this->getVar('user_viewemail')); - $user->setVar('url',$this->getVar('url')); - $user->setVar('user_icq',$this->getVar('user_icq')); - $user->setVar('user_aim',$this->getVar('user_aim')); - $user->setVar('user_yim',$this->getVar('user_yim')); - $user->setVar('user_msnm',$this->getVar('user_msnm')); - $user->setVar('user_from',$this->getVar('user_from')); - $user->setVar('user_occ',$this->getVar('user_occ')); - $user->setVar('user_intrest',$this->getVar('user_intrest')); - $user->setVar('user_sig',$this->getVar('user_sig')); - $user->setVar('attachsig',$this->getVar('attachsig')); - $user->setVar('user_sig',$this->getVar('user_sig')); - $user->setVar('bio',$this->getVar('bio')); - $user->setVar('user_mailok',$this->getVar('user_mailok')); + $user->set('name',$this->getVar('name')); + $user->set('email',$this->getVar('email')); + $user->set('user_viewemail',$this->getVar('user_viewemail')); + $user->set('url',$this->getVar('url')); + $user->set('user_icq',$this->getVar('user_icq')); + $user->set('user_aim',$this->getVar('user_aim')); + $user->set('user_yim',$this->getVar('user_yim')); + $user->set('user_msnm',$this->getVar('user_msnm')); + $user->set('user_from',$this->getVar('user_from')); + $user->set('user_occ',$this->getVar('user_occ')); + $user->set('user_intrest',$this->getVar('user_intrest')); + $user->set('user_sig',$this->getVar('user_sig')); + $user->set('attachsig',$this->getVar('attachsig')); + $user->set('user_sig',$this->getVar('user_sig')); + $user->set('bio',$this->getVar('bio')); + $user->set('user_mailok',$this->getVar('user_mailok')); if($this->getVar('pass')) - $user->setVar('pass',$this->getVar('pass')); + $user->set('pass',$this->getVar('pass')); } }