diff options
author | VirtualTam <virtualtam@flibidi.net> | 2015-12-23 19:50:33 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2015-12-23 19:50:33 +0100 |
commit | ccb7cf9855a1842fbba4e48f05dad906402d4ca1 (patch) | |
tree | 70178dfe49f908d4992dbcd39ee8d498b7ef61f8 /plugins/qrcode | |
parent | 70a35e2a6dfeabcb657494a0f30eb630aeb57792 (diff) | |
parent | 49e62f22ad750d4d60936ec8437caee91809b179 (diff) | |
download | Shaarli-ccb7cf9855a1842fbba4e48f05dad906402d4ca1.tar.gz Shaarli-ccb7cf9855a1842fbba4e48f05dad906402d4ca1.tar.zst Shaarli-ccb7cf9855a1842fbba4e48f05dad906402d4ca1.zip |
Merge pull request #418 from ArthurHoaro/qrcode-bug
QRCode plugin: use url instead of real_url
Diffstat (limited to 'plugins/qrcode')
-rw-r--r-- | plugins/qrcode/qrcode.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/qrcode/qrcode.php b/plugins/qrcode/qrcode.php index a709abaa..8bc610d1 100644 --- a/plugins/qrcode/qrcode.php +++ b/plugins/qrcode/qrcode.php | |||
@@ -17,7 +17,11 @@ function hook_qrcode_render_linklist($data) | |||
17 | $qrcode_html = file_get_contents(PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.html'); | 17 | $qrcode_html = file_get_contents(PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.html'); |
18 | 18 | ||
19 | foreach ($data['links'] as &$value) { | 19 | foreach ($data['links'] as &$value) { |
20 | $qrcode = sprintf($qrcode_html, $value['real_url'], $value['real_url'], PluginManager::$PLUGINS_PATH); | 20 | $qrcode = sprintf($qrcode_html, |
21 | urlencode($value['url']), | ||
22 | $value['url'], | ||
23 | PluginManager::$PLUGINS_PATH | ||
24 | ); | ||
21 | $value['link_plugin'][] = $qrcode; | 25 | $value['link_plugin'][] = $qrcode; |
22 | } | 26 | } |
23 | 27 | ||