mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:05:56 +00:00
move around some methods in base plugins class
This commit is contained in:
@@ -2,11 +2,10 @@
|
||||
abstract class Plugin {
|
||||
const API_VERSION_COMPAT = 1;
|
||||
|
||||
/** @var PDO */
|
||||
/** @var PDO $pdo */
|
||||
protected $pdo;
|
||||
|
||||
/* @var PluginHost $host */
|
||||
abstract function init($host);
|
||||
abstract function init(PluginHost $host);
|
||||
|
||||
abstract function about();
|
||||
// return array(1.0, "plugin", "No description", "No author", false);
|
||||
@@ -26,6 +25,10 @@ abstract class Plugin {
|
||||
return false;
|
||||
}
|
||||
|
||||
function csrf_ignore($method) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function get_js() {
|
||||
return "";
|
||||
}
|
||||
@@ -55,7 +58,4 @@ abstract class Plugin {
|
||||
return vsprintf($this->__($msgid), $args);
|
||||
}
|
||||
|
||||
function csrf_ignore($method) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user