Browse Source

move around some methods in base plugins class

master
Andrew Dolgov 1 year ago
parent
commit
1a7f724bfa
  1. 12
      classes/plugin.php

12
classes/plugin.php

@ -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;
}
}

Loading…
Cancel
Save