diff options
Diffstat (limited to 'application/front/controller/admin/ExportController.php')
-rw-r--r-- | application/front/controller/admin/ExportController.php | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/application/front/controller/admin/ExportController.php b/application/front/controller/admin/ExportController.php index 8e0e5a56..7afbfc23 100644 --- a/application/front/controller/admin/ExportController.php +++ b/application/front/controller/admin/ExportController.php | |||
@@ -33,6 +33,8 @@ class ExportController extends ShaarliAdminController | |||
33 | */ | 33 | */ |
34 | public function export(Request $request, Response $response): Response | 34 | public function export(Request $request, Response $response): Response |
35 | { | 35 | { |
36 | $this->checkToken($request); | ||
37 | |||
36 | $selection = $request->getParam('selection'); | 38 | $selection = $request->getParam('selection'); |
37 | 39 | ||
38 | if (empty($selection)) { | 40 | if (empty($selection)) { |
@@ -74,19 +76,4 @@ class ExportController extends ShaarliAdminController | |||
74 | 76 | ||
75 | return $response->write($this->render('export.bookmarks')); | 77 | return $response->write($this->render('export.bookmarks')); |
76 | } | 78 | } |
77 | |||
78 | /** | ||
79 | * @param mixed[] $data Variables passed to the template engine | ||
80 | * | ||
81 | * @return mixed[] Template data after active plugins render_picwall hook execution. | ||
82 | */ | ||
83 | protected function executeHooks(array $data): array | ||
84 | { | ||
85 | $this->container->pluginManager->executeHooks( | ||
86 | 'render_tools', | ||
87 | $data | ||
88 | ); | ||
89 | |||
90 | return $data; | ||
91 | } | ||
92 | } | 79 | } |