'Please define the "WALLABAG_URL" setting in the plugin administration page.');
return array($error);
}
+ $conf->setEmpty('plugins.WALLABAG_URL', '2');
}
/**
function hook_wallabag_render_linklist($data, $conf)
{
$wallabagUrl = $conf->get('plugins.WALLABAG_URL');
- if (empty($wallabagUrl)) {
+ if (empty($wallabagUrl) || !$data['_LOGGEDIN_']) {
return $data;
}
$wallabag = sprintf(
$wallabagHtml,
$wallabagInstance->getWallabagUrl(),
- urlencode($value['url']),
+ urlencode(unescape($value['url'])),
$path,
$linkTitle
);