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/qrcode/qrcode.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/qrcode/qrcode.php') diff --git a/plugins/qrcode/qrcode.php b/plugins/qrcode/qrcode.php index c1d237d5..2ec0cb65 100644 --- a/plugins/qrcode/qrcode.php +++ b/plugins/qrcode/qrcode.php @@ -6,7 +6,7 @@ */ use Shaarli\Plugin\PluginManager; -use Shaarli\Router; +use Shaarli\Render\TemplatePage; /** * Add qrcode icon to link_plugin when rendering linklist. @@ -40,7 +40,7 @@ function hook_qrcode_render_linklist($data) */ function hook_qrcode_render_footer($data) { - if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) { + if ($data['_PAGE_'] == TemplatePage::LINKLIST) { $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/qrcode/shaarli-qrcode.js'; } @@ -56,7 +56,7 @@ function hook_qrcode_render_footer($data) */ function hook_qrcode_render_includes($data) { - if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) { + if ($data['_PAGE_'] == TemplatePage::LINKLIST) { $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.css'; } -- cgit v1.2.3