]> git.wh0rd.org - tt-rss.git/blobdiff - classes/pluginhost.php
force-cast some variables used in queries to integer
[tt-rss.git] / classes / pluginhost.php
index 561a10a41d15b3a66151bbee0955873e4ad60099..4224893c24163fd1624bd18c98686bb903d2ec5e 100644 (file)
@@ -1,6 +1,5 @@
 <?php
 class PluginHost {
-       private $dbh;
        private $pdo;
        private $hooks = array();
        private $plugins = array();
@@ -57,13 +56,13 @@ class PluginHost {
        const HOOK_FORMAT_ARTICLE_CDM = 35;
        const HOOK_FEED_BASIC_INFO = 36;
        const HOOK_SEND_LOCAL_FILE = 37;
+       const HOOK_UNSUBSCRIBE_FEED = 38;
 
        const KIND_ALL = 1;
        const KIND_SYSTEM = 2;
        const KIND_USER = 3;
 
        function __construct() {
-               $this->dbh = Db::get();
                $this->pdo = Db::pdo();
 
                $this->storage = array();
@@ -91,7 +90,7 @@ class PluginHost {
        }
 
        function get_dbh() {
-               return $this->dbh;
+               return Db::get();
        }
 
        function get_pdo() {
@@ -281,8 +280,6 @@ class PluginHost {
                } else {
                        return false;
                }
-
-               return false;
        }
 
        function get_commands() {