]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/AutoSandbox/AutoSandboxPlugin.php
Events on user registrations now strictly typed
[quix0rs-gnu-social.git] / plugins / AutoSandbox / AutoSandboxPlugin.php
index e197254f7f0419b5516416a2102f2dbb163a0f26..ca48020ea3b8668d73947010a2eff615eb121914 100644 (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");
         }
     }
 }