diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-07-26 14:43:10 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-26 14:43:10 +0200 |
commit | 9fbc42294e7667c5ef19cafa0d1fcfbc1c0f36a9 (patch) | |
tree | 9bfc3c9b185eb0c185d23146d44d42dd6685a4da /application/front/controller/admin/PluginsController.php | |
parent | bc583903adfd768f115fae438e4d9ed1043682d9 (diff) | |
download | Shaarli-9fbc42294e7667c5ef19cafa0d1fcfbc1c0f36a9.tar.gz Shaarli-9fbc42294e7667c5ef19cafa0d1fcfbc1c0f36a9.tar.zst Shaarli-9fbc42294e7667c5ef19cafa0d1fcfbc1c0f36a9.zip |
New basePath: fix officiel plugin paths and vintage template
Diffstat (limited to 'application/front/controller/admin/PluginsController.php')
-rw-r--r-- | application/front/controller/admin/PluginsController.php | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/application/front/controller/admin/PluginsController.php b/application/front/controller/admin/PluginsController.php index 1eb7e635..0e09116e 100644 --- a/application/front/controller/admin/PluginsController.php +++ b/application/front/controller/admin/PluginsController.php | |||
@@ -58,7 +58,7 @@ class PluginsController extends ShaarliAdminController | |||
58 | try { | 58 | try { |
59 | $parameters = $request->getParams() ?? []; | 59 | $parameters = $request->getParams() ?? []; |
60 | 60 | ||
61 | $this->executeHooks($parameters); | 61 | $this->executePageHooks('save_plugin_parameters', $parameters); |
62 | 62 | ||
63 | if (isset($parameters['parameters_form'])) { | 63 | if (isset($parameters['parameters_form'])) { |
64 | unset($parameters['parameters_form']); | 64 | unset($parameters['parameters_form']); |
@@ -81,19 +81,4 @@ class PluginsController extends ShaarliAdminController | |||
81 | 81 | ||
82 | return $this->redirect($response, '/admin/plugins'); | 82 | return $this->redirect($response, '/admin/plugins'); |
83 | } | 83 | } |
84 | |||
85 | /** | ||
86 | * @param mixed[] $data Variables passed to the template engine | ||
87 | * | ||
88 | * @return mixed[] Template data after active plugins render_picwall hook execution. | ||
89 | */ | ||
90 | protected function executeHooks(array $data): array | ||
91 | { | ||
92 | $this->container->pluginManager->executeHooks( | ||
93 | 'save_plugin_parameters', | ||
94 | $data | ||
95 | ); | ||
96 | |||
97 | return $data; | ||
98 | } | ||
99 | } | 84 | } |