aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-09-06 13:38:31 +0200
committerGitHub <noreply@github.com>2020-09-06 13:38:31 +0200
commita5dd7d58d25db7ffefc7ab1b39d99da2fe6976ac (patch)
treed33425e317d3fa5d375dee054c1b7f873ca7a318
parenta3cb851d0cd2a2256f7951bdf49eed935d343fe7 (diff)
parent707a1d237ad497dc85a15182c2cc44ec46c405dd (diff)
downloadShaarli-a5dd7d58d25db7ffefc7ab1b39d99da2fe6976ac.tar.gz
Shaarli-a5dd7d58d25db7ffefc7ab1b39d99da2fe6976ac.tar.zst
Shaarli-a5dd7d58d25db7ffefc7ab1b39d99da2fe6976ac.zip
Merge pull request #1546 from immanuelfodor/patch-2
Fix broken css/js files on individual shaare pages
-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;