1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:15:55 +00:00

plugins: bump API version

This commit is contained in:
Andrew Dolgov
2013-04-19 17:31:56 +04:00
parent ddf28801e4
commit 106a3de91c
32 changed files with 140 additions and 12 deletions

View File

@@ -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() {