diff --git a/plugins/auth_remote/init.php b/plugins/auth_remote/init.php index f0da1afc8..a87eea599 100644 --- a/plugins/auth_remote/init.php +++ b/plugins/auth_remote/init.php @@ -11,9 +11,9 @@ class Auth_Remote extends Plugin implements IAuthModule { true); } - function init($host) { + function init($dbh, host) { $this->host = $host; - $this->base = new Auth_Base(); + $this->base = new Auth_Base($dbh); $host->add_hook($host::HOOK_AUTH_USER, $this); } diff --git a/public.php b/public.php index 6ace943c4..2f5081957 100644 --- a/public.php +++ b/public.php @@ -43,7 +43,7 @@ if ($override) { $handler = $override; } else { - $handler = new Handler_Public( $_REQUEST); + $handler = new Handler_Public(Db::get(), $_REQUEST); } if (implements_interface($handler, "IHandler") && $handler->before($method)) {