]> git.wh0rd.org - tt-rss.git/blobdiff - classes/handler.php
fix missing DB object when instantiated to import opml
[tt-rss.git] / classes / handler.php
index 53b52ea032c113fc6986e495cb206896d5746e79..b209320458d40d52b8d530a9e2ee9324da4ce8d0 100644 (file)
@@ -1,19 +1,24 @@
 <?php
-class Handler {
-       protected $link;
+class Handler implements IHandler {
+       protected $dbh;
        protected $args;
 
-       function __construct($link, $args) {
-               $this->link = $link;
+       function __construct($args) {
+               $this->dbh = Db::get();
                $this->args = $args;
        }
 
-       function before() {
+       function csrf_ignore($method) {
+               return true;
+       }
+
+       function before($method) {
                return true;
        }
 
        function after() {
                return true;
        }
+
 }
 ?>