From d632b28cef93a159739e674a3573f197cc705c74 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Apr 2013 18:21:32 +0400 Subject: [PATCH] fix some missing constructor parameters --- plugins/auth_remote/init.php | 4 ++-- public.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)) {