From 6c8a93ad0c9e0cdd1b2d999833f4ed0d6b3f2035 Mon Sep 17 00:00:00 2001 From: kalvn Date: Sat, 12 Sep 2020 14:31:30 +0200 Subject: [PATCH] Removes base path for JS file since templates are supposed to add it. See https://github.com/shaarli/Shaarli/issues/1548 for more info. --- shaarli2mastodon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaarli2mastodon.php b/shaarli2mastodon.php index 6f4c8e9..314462e 100644 --- a/shaarli2mastodon.php +++ b/shaarli2mastodon.php @@ -72,7 +72,7 @@ function shaarli2mastodon_init($conf) function hook_shaarli2mastodon_render_footer($data, $conf) { if ($data['_PAGE_'] == TemplatePage::EDIT_LINK) { - $data['js_files'][] = ($data['_BASE_PATH_'] ?? '') . '/' . PluginManager::$PLUGINS_PATH . '/shaarli2mastodon/shaarli2mastodon.js'; + $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/shaarli2mastodon/shaarli2mastodon.js'; } return $data; }