pluginhost: catch errors while loading plugin source code
This commit is contained in:
parent
4165834f80
commit
20b56b5b23
|
@ -210,7 +210,12 @@ class PluginHost {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($this->plugins[$class])) {
|
if (!isset($this->plugins[$class])) {
|
||||||
|
try {
|
||||||
if (file_exists($file)) require_once $file;
|
if (file_exists($file)) require_once $file;
|
||||||
|
} catch (Error $err) {
|
||||||
|
user_error($err, E_USER_WARNING);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (class_exists($class) && is_subclass_of($class, "Plugin")) {
|
if (class_exists($class) && is_subclass_of($class, "Plugin")) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue