summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-19 17:31:56 +0400
committerAndrew Dolgov <[email protected]>2013-04-19 17:31:56 +0400
commit106a3de91c7c8c6c275323152de414253f01127a (patch)
tree2ce5d8c825db7f115ecdaad0ced6d819b141f8d4 /classes/pluginhost.php
parentddf28801e4720b9d7888b9bca5daf6be14d3720c (diff)
plugins: bump API version
Diffstat (limited to 'classes/pluginhost.php')
-rw-r--r--classes/pluginhost.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index dc75e31fb..9ebabeb8c 100644
--- a/classes/pluginhost.php
+++ b/classes/pluginhost.php
@@ -13,7 +13,7 @@ class PluginHost {
private $last_registered;
private static $instance;
- const API_VERSION = 1;
+ const API_VERSION = 2;
const HOOK_ARTICLE_BUTTON = 1;
const HOOK_ARTICLE_FILTER = 2;
@@ -62,15 +62,9 @@ class PluginHost {
$this->plugins[$name] = $plugin;
}
+ // needed for compatibility with API 1
function get_link() {
- header("Content-type: text/plain");
-
- print "One of the plugins called obsolete host method get_link(). This plugin needs to be updated or removed.\n\n";
-
- print "List of plugins loaded: " . join(" ,", array_keys($this->plugins)) . "\n\n";
-
- print "Last plugin initialized (possible culprit): " . $this->last_registered . "\n";
- die;
+ return false;
}
function get_dbh() {