Minahito
minah****@users*****
2006年 7月 31日 (月) 19:38:40 JST
Index: xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php diff -u xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php:1.1.2.8 xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php:1.1.2.9 --- xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php:1.1.2.8 Wed Jul 19 19:20:33 2006 +++ xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php Mon Jul 31 19:38:40 2006 @@ -1,7 +1,7 @@ <?php /** * @package user - * @version $Id: UserRegister_confirmAction.class.php,v 1.1.2.8 2006/07/19 10:20:33 minahito Exp $ + * @version $Id: UserRegister_confirmAction.class.php,v 1.1.2.9 2006/07/31 10:38:40 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -24,7 +24,7 @@ var $mNewUser = null; var $mRedirectMessage = null; - + /** * TODO this member function uses the old style delegate. */ @@ -32,9 +32,6 @@ { $this->mConfig = $moduleConfig; - $controller->mRoot->mEventManager->add("Module.User.Regist.Success", - new XCube_InstanceDelegate($this, "eventNotifyMail")); - $this->_getRegistForm($controller); $this->_processActionForm(); } @@ -63,8 +60,9 @@ $this->_clearRegistForm($controller); $this->_processMail($controller); - $eventArgs = array(); - $controller->mRoot->mEventManager->raiseEvent("Module.User.Regist.Success", $controller, $eventArgs); + $this->_eventNotifyMail($controller); + + XCube_DelegateUtils::call('Legacy.Event.ResgistUser.Success') return USER_FRAME_VIEW_SUCCESS; } @@ -114,7 +112,7 @@ $mailer->send(); // TODO CHECKS } - function eventNotifyMail(&$controller,&$eventArgs) + function _eventNotifyMail(&$controller) { if($this->mConfig['new_user_notify'] == 1 && !empty($this->mConfig['new_user_notify_group'])) { $director =& new User_UserRegistMailDirector($this->mNewUser, $controller->getConfig(), $this->mConfig);