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

add and check plugin base class

This commit is contained in:
Andrew Dolgov
2012-12-23 15:29:16 +04:00
parent 7252abe3ea
commit 5a0e03923f
11 changed files with 21 additions and 10 deletions

View File

@@ -59,7 +59,7 @@ class PluginHost {
if (file_exists($file)) require_once $file;
if (class_exists($class)) {
if (class_exists($class) && is_subclass_of($class, "Plugin")) {
$plugin = new $class($this);
$this->register_plugin($class, $plugin);