mirror of
https://github.com/slawkens/myaac.git
synced 2026-04-23 10:53:32 +02:00
Settings: Add Reset button
This commit is contained in:
@@ -46,6 +46,15 @@ if (!is_array($settingsFile)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isset($_POST['reset']) && $_POST['reset'] == '1') {
|
||||
$settings = Settings::getInstance();
|
||||
|
||||
$settings->deleteFromDatabase($plugin);
|
||||
$settings->clearCache();
|
||||
|
||||
success('Settings for this plugin has been reset.');
|
||||
}
|
||||
|
||||
$settingsKeyName = ($plugin == 'core' ? $plugin : $settingsFile['key']);
|
||||
|
||||
$title = ($plugin == 'core' ? 'Settings' : 'Plugin Settings - ' . $settingsFile['name']);
|
||||
|
||||
Reference in New Issue
Block a user