diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-09-25 10:59:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-25 10:59:40 +0200 |
commit | 85b972baf67c61ebabf1ce332358e4dfd2456a4e (patch) | |
tree | 6f890cf93ac6cd30da509fa9c39ec7d061f25709 /plugins/qrcode | |
parent | 71eb87353ca09a1476c3f94e51ccfbfb45a91170 (diff) | |
parent | 76fe68d924d424283d0a1784c5f5e7582dda3a00 (diff) | |
download | Shaarli-85b972baf67c61ebabf1ce332358e4dfd2456a4e.tar.gz Shaarli-85b972baf67c61ebabf1ce332358e4dfd2456a4e.tar.zst Shaarli-85b972baf67c61ebabf1ce332358e4dfd2456a4e.zip |
Merge pull request #1558 from ArthurHoaro/fix/plugins-base-path
Fix plugin base path in core plugins
Diffstat (limited to 'plugins/qrcode')
-rw-r--r-- | plugins/qrcode/qrcode.php | 4 |
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) | |||
42 | function hook_qrcode_render_footer($data) | 42 | function 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) | |||
58 | function hook_qrcode_render_includes($data) | 58 | function 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; |