Fixed plugin path

This commit is contained in:
Shoghi Cervantes 2013-12-09 21:50:58 +01:00
parent c23fc0057a
commit 02dc06c58b

View File

@ -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;
}