From: Andrew Dolgov Date: Wed, 17 Apr 2013 14:21:32 +0000 (+0400) Subject: fix some missing constructor parameters X-Git-Tag: 1.7.9~25^2~169 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d632b28cef93a159739e674a3573f197cc705c74;p=tt-rss.git fix some missing constructor parameters --- diff --git a/plugins/auth_remote/init.php b/plugins/auth_remote/init.php index f0da1afc..a87eea59 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 6ace943c..2f508195 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)) {