aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/qrcode
diff options
context:
space:
mode:
authorImmánuel! <21174107+immanuelfodor@users.noreply.github.com>2020-09-06 13:29:38 +0200
committerGitHub <noreply@github.com>2020-09-06 13:29:38 +0200
commit707a1d237ad497dc85a15182c2cc44ec46c405dd (patch)
treed33425e317d3fa5d375dee054c1b7f873ca7a318 /plugins/qrcode
parenta3cb851d0cd2a2256f7951bdf49eed935d343fe7 (diff)
downloadShaarli-707a1d237ad497dc85a15182c2cc44ec46c405dd.tar.gz
Shaarli-707a1d237ad497dc85a15182c2cc44ec46c405dd.tar.zst
Shaarli-707a1d237ad497dc85a15182c2cc44ec46c405dd.zip
Fix broken css/js files on individual shaare pages
Diffstat (limited to 'plugins/qrcode')
-rw-r--r--plugins/qrcode/qrcode.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/qrcode/qrcode.php b/plugins/qrcode/qrcode.php
index 3b5dae34..56ae47b3 100644
--- a/plugins/qrcode/qrcode.php
+++ b/plugins/qrcode/qrcode.php
@@ -42,7 +42,7 @@ function hook_qrcode_render_linklist($data)
42function hook_qrcode_render_footer($data) 42function hook_qrcode_render_footer($data)
43{ 43{
44 if ($data['_PAGE_'] == TemplatePage::LINKLIST) { 44 if ($data['_PAGE_'] == TemplatePage::LINKLIST) {
45 $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/qrcode/shaarli-qrcode.js'; 45 $data['js_files'][] = ($data['_BASE_PATH_'] ?? '') . '/' . PluginManager::$PLUGINS_PATH . '/qrcode/shaarli-qrcode.js';
46 } 46 }
47 47
48 return $data; 48 return $data;
@@ -58,7 +58,7 @@ function hook_qrcode_render_footer($data)
58function hook_qrcode_render_includes($data) 58function hook_qrcode_render_includes($data)
59{ 59{
60 if ($data['_PAGE_'] == TemplatePage::LINKLIST) { 60 if ($data['_PAGE_'] == TemplatePage::LINKLIST) {
61 $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.css'; 61 $data['css_files'][] = ($data['_BASE_PATH_'] ?? '') . '/' . PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.css';
62 } 62 }
63 63
64 return $data; 64 return $data;