diff --git a/backend.php b/backend.php index c69d6d98ba..84abc97304 100644 --- a/backend.php +++ b/backend.php @@ -120,7 +120,7 @@ function stripslashes_deep($value) { if ($override) { $handler = $override; } else { - $handler = new $op(Db::get(), $_REQUEST); + $handler = new $op($_REQUEST); } if ($handler && implements_interface($handler, 'IHandler')) { diff --git a/classes/handler.php b/classes/handler.php index d8e2a3025c..b209320458 100644 --- a/classes/handler.php +++ b/classes/handler.php @@ -3,8 +3,8 @@ class Handler implements IHandler { protected $dbh; protected $args; - function __construct($dbh, $args) { - $this->dbh = $dbh; + function __construct($args) { + $this->dbh = Db::get(); $this->args = $args; } diff --git a/opml.php b/opml.php index b932216148..af3694051d 100644 --- a/opml.php +++ b/opml.php @@ -24,7 +24,7 @@ if (db_num_rows($result) == 1) { $owner_uid = db_fetch_result($result, 0, "owner_uid"); - $opml = new Opml( $_REQUEST); + $opml = new Opml($_REQUEST); $opml->opml_export("", $owner_uid, true, false); } else { diff --git a/public.php b/public.php index f92d252e2a..33f5af7571 100644 --- a/public.php +++ b/public.php @@ -42,7 +42,7 @@ function stripslashes_deep($value) { if ($override) { $handler = $override; } else { - $handler = new Handler_Public(Db::get(), $_REQUEST); + $handler = new Handler_Public($_REQUEST); } if (implements_interface($handler, "IHandler") && $handler->before($method)) { diff --git a/update.php b/update.php index d8ea52361a..c301083f93 100755 --- a/update.php +++ b/update.php @@ -308,7 +308,7 @@ $_REQUEST = $filter; $_SESSION["uid"] = $owner_uid; - $filters = new Pref_Filters( $_REQUEST); + $filters = new Pref_Filters($_REQUEST); $filters->add(); } }