mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
Fix Settings:save for other plugins
This commit is contained in:
parent
37bde7df22
commit
1d5b751fe1
@ -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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user