diff options
author | ArthurHoaro <arthur@hoa.ro> | 2019-05-30 10:54:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-30 10:54:02 +0200 |
commit | 86aa2486541660a78ab3e347ba12e25aae232b7c (patch) | |
tree | 40e8066c0026d96c81ad62de43174a3458ae19de /plugins/qrcode | |
parent | c3a04e328f2c8d40890b0b26b118a193110634ce (diff) | |
parent | 5c003824a31f00a4eda53e56e49916db98fab18d (diff) | |
download | Shaarli-86aa2486541660a78ab3e347ba12e25aae232b7c.tar.gz Shaarli-86aa2486541660a78ab3e347ba12e25aae232b7c.tar.zst Shaarli-86aa2486541660a78ab3e347ba12e25aae232b7c.zip |
Merge pull request #1309 from ArthurHoaro/feature/qrcode-link
Remove QRCode link to an external service
Diffstat (limited to 'plugins/qrcode')
-rw-r--r-- | plugins/qrcode/qrcode.html | 2 | ||||
-rw-r--r-- | plugins/qrcode/qrcode.php | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/plugins/qrcode/qrcode.html b/plugins/qrcode/qrcode.html index dc214ed1..a21f7932 100644 --- a/plugins/qrcode/qrcode.html +++ b/plugins/qrcode/qrcode.html | |||
@@ -1,5 +1,5 @@ | |||
1 | <div class="linkqrcode"> | 1 | <div class="linkqrcode"> |
2 | <a href="http://qrfree.kaywa.com/?l=1&s=8&d=%s" onclick="showQrCode(this); return false;" class="qrcode" data-permalink="%s"> | 2 | <a href="#" onclick="showQrCode(this); return false;" class="qrcode" data-permalink="%s"> |
3 | <img src="%s/qrcode/qrcode.png" class="linklist-plugin-icon" title="QR-Code" alt="QRCode"> | 3 | <img src="%s/qrcode/qrcode.png" class="linklist-plugin-icon" title="QR-Code" alt="QRCode"> |
4 | </a> | 4 | </a> |
5 | </div> | 5 | </div> |
diff --git a/plugins/qrcode/qrcode.php b/plugins/qrcode/qrcode.php index 34eef8be..c1d237d5 100644 --- a/plugins/qrcode/qrcode.php +++ b/plugins/qrcode/qrcode.php | |||
@@ -22,7 +22,6 @@ function hook_qrcode_render_linklist($data) | |||
22 | foreach ($data['links'] as &$value) { | 22 | foreach ($data['links'] as &$value) { |
23 | $qrcode = sprintf( | 23 | $qrcode = sprintf( |
24 | $qrcode_html, | 24 | $qrcode_html, |
25 | urlencode($value['url']), | ||
26 | $value['url'], | 25 | $value['url'], |
27 | PluginManager::$PLUGINS_PATH | 26 | PluginManager::$PLUGINS_PATH |
28 | ); | 27 | ); |