mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 04:05:55 +00:00
implement plugin API version compatibility check
This commit is contained in:
@@ -3,6 +3,8 @@ class Plugin {
|
||||
private $dbh;
|
||||
private $host;
|
||||
|
||||
const API_VERSION_COMPAT = 1;
|
||||
|
||||
function init($host) {
|
||||
$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;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user