Fixed old & deprecated plugins not being able to create a config file

This commit is contained in:
Shoghi Cervantes Pueyo
2013-01-26 17:32:56 +01:00
parent 00c3201580
commit afbb5fab04
4 changed files with 5 additions and 4 deletions

View File

@@ -125,6 +125,7 @@ class PluginAPI extends stdClass{
return false;
}
$path = FILE_PATH."plugins/".$p[1]["name"]."/";
@mkdir($path);
$this->plugins[$p[1]["class"]][1]["path"] = $path;
$cnf = new Config($path."config.yml", CONFIG_YAML, $default);
$cnf->save();