PluginBase: Do not fill defaults from resources/config.yml (#2316)

This fixes #2219.
This commit is contained in:
Dylan K. Taylor 2018-08-07 12:33:24 +01:00 committed by GitHub
parent f3b2bcfd13
commit 7f0fa2ac3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,10 +258,6 @@ abstract class PluginBase implements Plugin{
public function reloadConfig(){
$this->saveDefaultConfig();
$this->config = new Config($this->configFile);
if(($configStream = $this->getResource("config.yml")) !== null){
$this->config->setDefaults(yaml_parse(Config::fixYAMLIndexes(stream_get_contents($configStream))));
fclose($configStream);
}
}
/**