fix missing DB object when instantiated to import opml
This commit is contained in:
parent
7f1113a56a
commit
1f29443530
|
@ -120,7 +120,7 @@
|
||||||
if ($override) {
|
if ($override) {
|
||||||
$handler = $override;
|
$handler = $override;
|
||||||
} else {
|
} else {
|
||||||
$handler = new $op(Db::get(), $_REQUEST);
|
$handler = new $op($_REQUEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($handler && implements_interface($handler, 'IHandler')) {
|
if ($handler && implements_interface($handler, 'IHandler')) {
|
||||||
|
|
|
@ -3,8 +3,8 @@ class Handler implements IHandler {
|
||||||
protected $dbh;
|
protected $dbh;
|
||||||
protected $args;
|
protected $args;
|
||||||
|
|
||||||
function __construct($dbh, $args) {
|
function __construct($args) {
|
||||||
$this->dbh = $dbh;
|
$this->dbh = Db::get();
|
||||||
$this->args = $args;
|
$this->args = $args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
if ($override) {
|
if ($override) {
|
||||||
$handler = $override;
|
$handler = $override;
|
||||||
} else {
|
} else {
|
||||||
$handler = new Handler_Public(Db::get(), $_REQUEST);
|
$handler = new Handler_Public($_REQUEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (implements_interface($handler, "IHandler") && $handler->before($method)) {
|
if (implements_interface($handler, "IHandler") && $handler->before($method)) {
|
||||||
|
|
Loading…
Reference in New Issue