diff options
Diffstat (limited to 'classes/plugin.php')
-rw-r--r-- | classes/plugin.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/classes/plugin.php b/classes/plugin.php index e655a2062..8fbacf363 100644 --- a/classes/plugin.php +++ b/classes/plugin.php @@ -1,10 +1,12 @@ <?php class Plugin { - private $link; + private $dbh; private $host; + const API_VERSION_COMPAT = 1; + function init($host) { - $this->link = $host->get_link(); + $this->dbh = $host->get_dbh(); $this->host = $host; } @@ -20,5 +22,9 @@ class Plugin { function get_prefs_js() { return ""; } + + function api_version() { + return Plugin::API_VERSION_COMPAT; + } } ?> |