From 02dc06c58bb032320f76958b7436063f1c9bfb43 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 9 Dec 2013 21:50:58 +0100 Subject: [PATCH] Fixed plugin path --- src/API/PluginAPI.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/API/PluginAPI.php b/src/API/PluginAPI.php index 274ff6d7..cc6e3c47 100644 --- a/src/API/PluginAPI.php +++ b/src/API/PluginAPI.php @@ -140,11 +140,12 @@ class PluginAPI extends stdClass{ public function configPath(Plugin $plugin){ $p = $this->get($plugin); + $identifier = $this->getIdentifier($p[1]["name"], $p[1]["author"]); if($p === false){ return false; } $path = $this->pluginsPath() . $p[1]["name"] . DIRECTORY_SEPARATOR; - $this->plugins[$p[1]["class"]][1]["path"] = $path; + $this->plugins[$identifier][1]["path"] = $path; @mkdir($path); return $path; }