X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=plugins%2Fisso%2Fisso.php;h=79e7380b66f543ade34bb080e027cba26990a7bf;hb=76fe68d924d424283d0a1784c5f5e7582dda3a00;hp=dab75dd55c5c0b06789da06e688664ef97256b54;hpb=905f8675a728841b03b300d2c7dc909a1c4f7f03;p=github%2Fshaarli%2FShaarli.git diff --git a/plugins/isso/isso.php b/plugins/isso/isso.php index dab75dd5..79e7380b 100644 --- a/plugins/isso/isso.php +++ b/plugins/isso/isso.php @@ -6,7 +6,7 @@ use Shaarli\Config\ConfigManager; use Shaarli\Plugin\PluginManager; -use Shaarli\Router; +use Shaarli\Render\TemplatePage; /** * Display an error everywhere if the plugin is enabled without configuration. @@ -49,7 +49,7 @@ function hook_isso_render_linklist($data, $conf) $isso = sprintf($issoHtml, $issoUrl, $issoUrl, $link['id'], $link['id']); $data['plugin_end_zone'][] = $isso; } else { - $button = ''; + $button = ''; // For the default theme we use a FontAwesome icon which is better than an image if ($conf->get('resource.theme') === 'default') { $button .= ''; @@ -76,7 +76,7 @@ function hook_isso_render_linklist($data, $conf) */ function hook_isso_render_includes($data) { - if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) { + if ($data['_PAGE_'] == TemplatePage::LINKLIST) { $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/isso/isso.css'; }