* Display a QRCode icon in link list.
*/
+use Shaarli\Plugin\PluginManager;
+use Shaarli\Router;
+
/**
* Add qrcode icon to link_plugin when rendering linklist.
*
$qrcode_html = file_get_contents(PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.html');
foreach ($data['links'] as &$value) {
- $qrcode = sprintf($qrcode_html,
+ $qrcode = sprintf(
+ $qrcode_html,
urlencode($value['url']),
$value['url'],
PluginManager::$PLUGINS_PATH