aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/qrcode
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-09-22 12:44:08 +0200
committerArthurHoaro <arthur@hoa.ro>2020-09-22 13:50:19 +0200
commit76fe68d924d424283d0a1784c5f5e7582dda3a00 (patch)
tree51d1d7f27a4ad12c67467932aba70049da8c4234 /plugins/qrcode
parent0d930454a2892715e691f9c7713e26a3bb4ee96c (diff)
downloadShaarli-76fe68d924d424283d0a1784c5f5e7582dda3a00.tar.gz
Shaarli-76fe68d924d424283d0a1784c5f5e7582dda3a00.tar.zst
Shaarli-76fe68d924d424283d0a1784c5f5e7582dda3a00.zip
Fix plugin base path in core plugins
Also fix note check in archiveorg plugin, and regression on vintage template. Documentation regarding relative path has been added. Fixes #1548
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 56ae47b3..95499e39 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'][] = ($data['_BASE_PATH_'] ?? '') . '/' . PluginManager::$PLUGINS_PATH . '/qrcode/shaarli-qrcode.js'; 45 $data['js_files'][] = 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'][] = ($data['_BASE_PATH_'] ?? '') . '/' . PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.css'; 61 $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.css';
62 } 62 }
63 63
64 return $data; 64 return $data;