From 9ee71806818cfe8113fe20f04e17622572fe838a Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Wed, 20 Mar 2013 15:19:24 +0100 Subject: [PATCH] Lower API version of a plugin is notified with a debug level of 2 --- 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 cc06449c2..aaadd5a2e 100644 --- a/src/API/PluginAPI.php +++ b/src/API/PluginAPI.php @@ -99,7 +99,7 @@ class PluginAPI extends stdClass{ if(isset($info["apiversion"]) and intval($info["apiversion"]) > CURRENT_API_VERSION){ console("[ERROR] [PluginAPI] Plugin \"".$info["name"]."\" uses a newer API! It can crash or corrupt the server!"); }elseif(!isset($info["apiversion"]) or intval($info["apiversion"]) < CURRENT_API_VERSION){ - console("[NOTICE] [PluginAPI] Plugin \"".$info["name"]."\" uses an old API"); + console("[DEBUG] [PluginAPI] Plugin \"".$info["name"]."\" uses an old API", true, true, 2); } $object = new $className($this->server->api, false); if(!($object instanceof Plugin)){