fix some missing constructor parameters

This commit is contained in:
Andrew Dolgov 2013-04-17 18:21:32 +04:00
parent 7440a7fe3c
commit d632b28cef
2 changed files with 3 additions and 3 deletions

View 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);
}

View 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)) {