Events on user registrations now strictly typed
This commit is contained in:
@@ -90,11 +90,11 @@ class AutoSandboxPlugin extends Plugin
|
||||
$action->elementEnd('div');
|
||||
}
|
||||
|
||||
function onEndUserRegister(&$profile,&$user)
|
||||
public function onEndUserRegister(Profile $profile)
|
||||
{
|
||||
$profile->sandbox();
|
||||
if ($this->debug) {
|
||||
common_log(LOG_WARNING, "AutoSandbox: sandboxed of $user->nickname");
|
||||
$profile->sandbox();
|
||||
if ($this->debug) {
|
||||
common_log(LOG_WARNING, "AutoSandbox: sandboxed of $profile->nickname");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user