Skip to content

Commit

Permalink
DANGEROUS UPDATE: adds base path to plugins JS and CSS files
Browse files Browse the repository at this point in the history
More details here shaarli/Shaarli#1548
  • Loading branch information
kalvn committed Sep 12, 2020
1 parent e0999c2 commit acafc65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion material/includes.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<meta name="theme-color" content="#2196f3">
{/if}
{loop="$plugins_includes.css_files"}
<link type="text/css" rel="stylesheet" href="{$value}?v={$version_hash}#"/>
<link type="text/css" rel="stylesheet" href="{$base_path}/{$value}?v={$version_hash}#"/>
{/loop}
{if="is_file('data/user.css')"}<link type="text/css" rel="stylesheet" href="data/user.css#" />{/if}
<script>
Expand Down
2 changes: 1 addition & 1 deletion material/page.footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
</div>
<script src="{$asset_path}/dist/scripts.min.js?v={$version_hash}#"></script>
{loop="$plugins_footer.js_files"}
<script src="{$value}?v={$version_hash}#"></script>
<script src="{$base_path}/{$value}?v={$version_hash}#"></script>
{/loop}

0 comments on commit acafc65

Please sign in to comment.