PluginBase: fixed error always being emitted on saveConfig()

This now throws exceptions... let's let the caller deal with this instead, it makes more sense anyway
This commit is contained in:
Dylan K. Taylor 2018-07-26 19:14:16 +01:00
parent c3bc751b04
commit 20a5b75622

View File

@ -254,9 +254,7 @@ abstract class PluginBase implements Plugin{
}
public function saveConfig(){
if(!$this->getConfig()->save()){
$this->getLogger()->critical("Could not save config to " . $this->configFile);
}
$this->getConfig()->save();
}
public function saveDefaultConfig() : bool{