From 33d24b2f5c95f7a0b42f87d4e4e3c484063fc316 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 4 Jan 2009 10:43:44 -0800 Subject: [PATCH] new events --- ext/user/main.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/user/main.php b/ext/user/main.php index 38a33e7c..fc4c1e70 100644 --- a/ext/user/main.php +++ b/ext/user/main.php @@ -28,7 +28,8 @@ class UserCreationEvent extends Event { var $password; var $email; - public function UserCreationEvent($name, $pass, $email) { + public function __construct(RequestContext $context, $name, $pass, $email) { + parent::__construct($context); $this->username = $name; $this->password = $pass; $this->email = $email; @@ -83,7 +84,7 @@ class UserPage implements Extension { } else { try { - $uce = new UserCreationEvent($_POST['name'], $_POST['pass1'], $_POST['email']); + $uce = new UserCreationEvent($event->context, $_POST['name'], $_POST['pass1'], $_POST['email']); send_event($uce); $this->set_login_cookie($uce->username, $uce->password); $event->page->set_mode("redirect");