fix some missing constructor parameters
This commit is contained in:
parent
7440a7fe3c
commit
d632b28cef
|
@ -11,9 +11,9 @@ class Auth_Remote extends Plugin implements IAuthModule {
|
||||||
true);
|
true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function init($host) {
|
function init($dbh, host) {
|
||||||
$this->host = $host;
|
$this->host = $host;
|
||||||
$this->base = new Auth_Base();
|
$this->base = new Auth_Base($dbh);
|
||||||
|
|
||||||
$host->add_hook($host::HOOK_AUTH_USER, $this);
|
$host->add_hook($host::HOOK_AUTH_USER, $this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
if ($override) {
|
if ($override) {
|
||||||
$handler = $override;
|
$handler = $override;
|
||||||
} else {
|
} else {
|
||||||
$handler = new Handler_Public( $_REQUEST);
|
$handler = new Handler_Public(Db::get(), $_REQUEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (implements_interface($handler, "IHandler") && $handler->before($method)) {
|
if (implements_interface($handler, "IHandler") && $handler->before($method)) {
|
||||||
|
|
Loading…
Reference in New Issue