Merge branch 'release/3.1'

This commit is contained in:
Dylan K. Taylor
2018-07-06 13:12:22 +01:00
2 changed files with 7 additions and 0 deletions

View File

@ -267,6 +267,7 @@ abstract class PluginBase implements Plugin{
}
public function reloadConfig(){
@mkdir($this->dataFolder);
$this->config = new Config($this->configFile);
if(($configStream = $this->getResource("config.yml")) !== null){
$this->config->setDefaults(yaml_parse(Config::fixYAMLIndexes(stream_get_contents($configStream))));