Browse Source

fix some missing constructor parameters

Andrew Dolgov 7 years ago
parent
commit
d632b28cef
2 changed files with 3 additions and 3 deletions
  1. 2 2
      plugins/auth_remote/init.php
  2. 1 1
      public.php

+ 2 - 2
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);
 	}

+ 1 - 1
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)) {