mirror of
https://github.com/slawkens/myaac.git
synced 2026-04-23 10:53:32 +02:00
Fix: Reset settings by plugin name, not the settings key name
This commit is contained in:
@@ -49,7 +49,7 @@ if (!is_array($settingsFile)) {
|
||||
if (isset($_POST['reset']) && $_POST['reset'] == '1') {
|
||||
$settings = Settings::getInstance();
|
||||
|
||||
$settings->deleteFromDatabase($plugin);
|
||||
$settings->deleteFromDatabase($settingsFile['key']);
|
||||
$settings->clearCache();
|
||||
|
||||
success('Settings for this plugin has been reset.');
|
||||
@@ -66,4 +66,5 @@ $twig->display('admin.settings.html.twig', [
|
||||
'settings' => $settingsFile['settings'],
|
||||
'script' => $settingsParsed['script'],
|
||||
'settingsKeyName' => $settingsKeyName,
|
||||
'pluginName' => $plugin,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user