From 1a8ac737e52cb25a5c346232ee398f5908cee7d7 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 6 Jul 2020 08:04:35 +0200 Subject: Process main page (linklist) through Slim controller Including a bunch of improvements on the container, and helper used across new controllers. --- plugins/addlink_toolbar/addlink_toolbar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/addlink_toolbar/addlink_toolbar.php') diff --git a/plugins/addlink_toolbar/addlink_toolbar.php b/plugins/addlink_toolbar/addlink_toolbar.php index 8bf4ed46..c3e7abaf 100644 --- a/plugins/addlink_toolbar/addlink_toolbar.php +++ b/plugins/addlink_toolbar/addlink_toolbar.php @@ -5,7 +5,7 @@ * Adds the addlink input on the linklist page. */ -use Shaarli\Router; +use Shaarli\Render\TemplatePage; /** * When linklist is displayed, add play videos to header's toolbar. @@ -16,7 +16,7 @@ use Shaarli\Router; */ function hook_addlink_toolbar_render_header($data) { - if ($data['_PAGE_'] == Router::$PAGE_LINKLIST && $data['_LOGGEDIN_'] === true) { + if ($data['_PAGE_'] == TemplatePage::LINKLIST && $data['_LOGGEDIN_'] === true) { $form = array( 'attr' => array( 'method' => 'GET', -- cgit v1.2.3 From 9fbc42294e7667c5ef19cafa0d1fcfbc1c0f36a9 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 26 Jul 2020 14:43:10 +0200 Subject: New basePath: fix officiel plugin paths and vintage template --- plugins/addlink_toolbar/addlink_toolbar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/addlink_toolbar/addlink_toolbar.php') diff --git a/plugins/addlink_toolbar/addlink_toolbar.php b/plugins/addlink_toolbar/addlink_toolbar.php index c3e7abaf..ab6ed6de 100644 --- a/plugins/addlink_toolbar/addlink_toolbar.php +++ b/plugins/addlink_toolbar/addlink_toolbar.php @@ -20,7 +20,7 @@ function hook_addlink_toolbar_render_header($data) $form = array( 'attr' => array( 'method' => 'GET', - 'action' => '', + 'action' => $data['_BASE_PATH_'] . '/admin/shaare', 'name' => 'addform', 'class' => 'addform', ), -- cgit v1.2.3