mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-16 18:53:26 +02:00
Fix Settings:save for other plugins
This commit is contained in:
@@ -54,9 +54,12 @@ class Settings implements ArrayAccess
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function save($pluginName, $values) {
|
public function save($pluginName, $values)
|
||||||
|
{
|
||||||
|
$this->loadPlugin($pluginName);
|
||||||
|
|
||||||
if (!isset($this->settingsFile[$pluginName])) {
|
if (!isset($this->settingsFile[$pluginName])) {
|
||||||
throw new RuntimeException('Error on save settings: plugin does not exist');
|
throw new RuntimeException("Error on save settings: plugin $pluginName does not exist");
|
||||||
}
|
}
|
||||||
|
|
||||||
$settings = $this->settingsFile[$pluginName];
|
$settings = $this->settingsFile[$pluginName];
|
||||||
|
Reference in New Issue
Block a user