]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Add the new hook save_plugin_parameters to the demo plugin
[github/shaarli/Shaarli.git] / index.php
index 957d8d9a4f428abbc0524b02f4e91bfd04e5b47e..f0f71dbb9b34ce9570ea966e23cef0fb5e82a733 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1567,6 +1567,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager,
     if ($targetPage == Router::$PAGE_SAVE_PLUGINSADMIN) {
         try {
             if (isset($_POST['parameters_form'])) {
+                $pluginManager->executeHooks('save_plugin_parameters', $_POST);
                 unset($_POST['parameters_form']);
                 foreach ($_POST as $param => $value) {
                     $conf->set('plugins.'. $param, escape($value));