]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/front/controller/admin/PluginsController.php
New basePath: fix officiel plugin paths and vintage template
[github/shaarli/Shaarli.git] / application / front / controller / admin / PluginsController.php
index 1eb7e6357a346dd7e889c0ba4b89ff0c58994102..0e09116e98ddb4ca334455c1db2d69d3b5d3eb69 100644 (file)
@@ -58,7 +58,7 @@ class PluginsController extends ShaarliAdminController
         try {
             $parameters = $request->getParams() ?? [];
 
-            $this->executeHooks($parameters);
+            $this->executePageHooks('save_plugin_parameters', $parameters);
 
             if (isset($parameters['parameters_form'])) {
                 unset($parameters['parameters_form']);
@@ -81,19 +81,4 @@ class PluginsController extends ShaarliAdminController
 
         return $this->redirect($response, '/admin/plugins');
     }
-
-    /**
-     * @param mixed[] $data Variables passed to the template engine
-     *
-     * @return mixed[] Template data after active plugins render_picwall hook execution.
-     */
-    protected function executeHooks(array $data): array
-    {
-        $this->container->pluginManager->executeHooks(
-            'save_plugin_parameters',
-            $data
-        );
-
-        return $data;
-    }
 }