]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix some missing constructor parameters
authorAndrew Dolgov <fox@fakecake.org>
Wed, 17 Apr 2013 14:21:32 +0000 (18:21 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Wed, 17 Apr 2013 14:21:32 +0000 (18:21 +0400)
plugins/auth_remote/init.php
public.php

index f0da1afc8b51ee9d0dc685f5b19d46a291d60ff6..a87eea5990e5c7601195c7271f6f94c9015beda5 100644 (file)
@@ -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);
        }
index 6ace943c411744af99d348a4e936673d80640f3a..2f5081957a1abd75a219d090537231ad9cf953a6 100644 (file)
@@ -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)) {