diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-07-06 08:04:35 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | 1a8ac737e52cb25a5c346232ee398f5908cee7d7 (patch) | |
tree | 31954c4e106b5743e2005d72c2d548a0be8d6dce /application/front/controller/admin/ManageShaareController.php | |
parent | 6132d64748dfc6806ed25f71d2e078a5ed29d071 (diff) | |
download | Shaarli-1a8ac737e52cb25a5c346232ee398f5908cee7d7.tar.gz Shaarli-1a8ac737e52cb25a5c346232ee398f5908cee7d7.tar.zst Shaarli-1a8ac737e52cb25a5c346232ee398f5908cee7d7.zip |
Process main page (linklist) through Slim controller
Including a bunch of improvements on the container,
and helper used across new controllers.
Diffstat (limited to 'application/front/controller/admin/ManageShaareController.php')
-rw-r--r-- | application/front/controller/admin/ManageShaareController.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/application/front/controller/admin/ManageShaareController.php b/application/front/controller/admin/ManageShaareController.php index bdfc5ca7..3aa48423 100644 --- a/application/front/controller/admin/ManageShaareController.php +++ b/application/front/controller/admin/ManageShaareController.php | |||
@@ -7,6 +7,7 @@ namespace Shaarli\Front\Controller\Admin; | |||
7 | use Shaarli\Bookmark\Bookmark; | 7 | use Shaarli\Bookmark\Bookmark; |
8 | use Shaarli\Bookmark\Exception\BookmarkNotFoundException; | 8 | use Shaarli\Bookmark\Exception\BookmarkNotFoundException; |
9 | use Shaarli\Formatter\BookmarkMarkdownFormatter; | 9 | use Shaarli\Formatter\BookmarkMarkdownFormatter; |
10 | use Shaarli\Render\TemplatePage; | ||
10 | use Shaarli\Thumbnailer; | 11 | use Shaarli\Thumbnailer; |
11 | use Slim\Http\Request; | 12 | use Slim\Http\Request; |
12 | use Slim\Http\Response; | 13 | use Slim\Http\Response; |
@@ -28,7 +29,7 @@ class ManageShaareController extends ShaarliAdminController | |||
28 | t('Shaare a new link') .' - '. $this->container->conf->get('general.title', 'Shaarli') | 29 | t('Shaare a new link') .' - '. $this->container->conf->get('general.title', 'Shaarli') |
29 | ); | 30 | ); |
30 | 31 | ||
31 | return $response->write($this->render('addlink')); | 32 | return $response->write($this->render(TemplatePage::ADDLINK)); |
32 | } | 33 | } |
33 | 34 | ||
34 | /** | 35 | /** |
@@ -365,7 +366,7 @@ class ManageShaareController extends ShaarliAdminController | |||
365 | $editLabel . t('Shaare') .' - '. $this->container->conf->get('general.title', 'Shaarli') | 366 | $editLabel . t('Shaare') .' - '. $this->container->conf->get('general.title', 'Shaarli') |
366 | ); | 367 | ); |
367 | 368 | ||
368 | return $response->write($this->render('editlink')); | 369 | return $response->write($this->render(TemplatePage::EDIT_LINK)); |
369 | } | 370 | } |
370 | 371 | ||
371 | /** | 372 | /** |