]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - plugins/isso/isso.php
Fix broken css/js files on individual shaare pages
[github/shaarli/Shaarli.git] / plugins / isso / isso.php
index 378c11af3bfb526b57e22e76c88aa06f4408c2bd..16edd9a61e44236b53832ce150a3e1b938c5a4fe 100644 (file)
@@ -5,6 +5,8 @@
  */
 
 use Shaarli\Config\ConfigManager;
+use Shaarli\Plugin\PluginManager;
+use Shaarli\Render\TemplatePage;
 
 /**
  * Display an error everywhere if the plugin is enabled without configuration.
@@ -74,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';
     }