summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-12-23 15:29:16 +0400
committerAndrew Dolgov <[email protected]>2012-12-23 15:29:16 +0400
commit5a0e03923f47bc1140fd71b4899cd1e35fd59006 (patch)
tree6ece4cb89259ac78f789d8ba630d328629ecbd01 /classes/pluginhost.php
parent7252abe3ea5703b3cf75a3745e560499cfde500a (diff)
add and check plugin base class
Diffstat (limited to 'classes/pluginhost.php')
-rw-r--r--classes/pluginhost.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index 4274ec37b..f4e01178b 100644
--- a/classes/pluginhost.php
+++ b/classes/pluginhost.php
@@ -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);