From c23fc0057abe65833404e201cc6e2d3bff89fd27 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 8 Dec 2013 17:17:47 +0100 Subject: [PATCH] PHP plugins are now included using include() --- src/API/PluginAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/PluginAPI.php b/src/API/PluginAPI.php index 6bf2a34c..274ff6d7 100644 --- a/src/API/PluginAPI.php +++ b/src/API/PluginAPI.php @@ -81,7 +81,7 @@ class PluginAPI extends stdClass{ console("[ERROR] Failed loading plugin: class already exists"); return false; } - if(eval($info["code"]) === false or ($info["class"] !== "none" and !class_exists($info["class"]))){ + if(((!isset($pmf) and (include $file) === false) or (isset($pmf) and eval($info["code"]) === false)) and $info["class"] !== "none" and !class_exists($info["class"])){ console("[ERROR] Failed loading {$info['name']}: evaluation error"); return false; }