Skip to content

Commit

Permalink
Removes base path for JS file since templates are supposed to add it.
Browse files Browse the repository at this point in the history
See shaarli/Shaarli#1548 for more info.
  • Loading branch information
kalvn committed Sep 12, 2020
1 parent 5075523 commit 6c8a93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shaarli2mastodon.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6c8a93a

Please sign in to comment.