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/visitor/BookmarkListController.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/visitor/BookmarkListController.php')
-rw-r--r-- | application/front/controller/visitor/BookmarkListController.php | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/application/front/controller/visitor/BookmarkListController.php b/application/front/controller/visitor/BookmarkListController.php index a37a7f6b..23c4fbae 100644 --- a/application/front/controller/visitor/BookmarkListController.php +++ b/application/front/controller/visitor/BookmarkListController.php | |||
@@ -124,7 +124,7 @@ class BookmarkListController extends ShaarliVisitorController | |||
124 | 124 | ||
125 | $data['pagetitle'] = ($data['pagetitle'] ?? '') . $this->container->conf->get('general.title', 'Shaarli'); | 125 | $data['pagetitle'] = ($data['pagetitle'] ?? '') . $this->container->conf->get('general.title', 'Shaarli'); |
126 | 126 | ||
127 | $this->executeHooks($data); | 127 | $this->executePageHooks('render_linklist', $data, TemplatePage::LINKLIST); |
128 | $this->assignAllView($data); | 128 | $this->assignAllView($data); |
129 | 129 | ||
130 | return $response->write($this->render(TemplatePage::LINKLIST)); | 130 | return $response->write($this->render(TemplatePage::LINKLIST)); |
@@ -153,7 +153,7 @@ class BookmarkListController extends ShaarliVisitorController | |||
153 | ] | 153 | ] |
154 | ); | 154 | ); |
155 | 155 | ||
156 | $this->executeHooks($data); | 156 | $this->executePageHooks('render_linklist', $data, TemplatePage::LINKLIST); |
157 | $this->assignAllView($data); | 157 | $this->assignAllView($data); |
158 | 158 | ||
159 | return $response->write($this->render(TemplatePage::LINKLIST)); | 159 | return $response->write($this->render(TemplatePage::LINKLIST)); |
@@ -183,18 +183,6 @@ class BookmarkListController extends ShaarliVisitorController | |||
183 | } | 183 | } |
184 | 184 | ||
185 | /** | 185 | /** |
186 | * @param mixed[] $data Template vars to process in plugins, passed as reference. | ||
187 | */ | ||
188 | protected function executeHooks(array &$data): void | ||
189 | { | ||
190 | $this->container->pluginManager->executeHooks( | ||
191 | 'render_linklist', | ||
192 | $data, | ||
193 | ['loggedin' => $this->container->loginManager->isLoggedIn()] | ||
194 | ); | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * @return string[] Default template variables without values. | 186 | * @return string[] Default template variables without values. |
199 | */ | 187 | */ |
200 | protected function initializeTemplateVars(): array | 188 | protected function initializeTemplateVars(): array |