Events on user registrations now strictly typed

This commit is contained in:
Mikael Nordfeldth
2013-09-14 18:36:35 +02:00
parent 482296561e
commit 83b852312a
7 changed files with 19 additions and 24 deletions

View File

@@ -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");
}
}
}