mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:40:17 +00:00
Test if addon_hooks is an array before using it
This commit is contained in:
parent
b54d1b708a
commit
ba4ddb1d8d
1 changed files with 2 additions and 0 deletions
|
@ -45,9 +45,11 @@
|
|||
<script type="text/javascript" src="view/js/acl.js" ></script>
|
||||
<script type="text/javascript" src="view/asset/base64/base64.min.js" ></script>
|
||||
<script type="text/javascript" src="view/js/addon-hooks.js" ></script>
|
||||
{{if is_array($addon_hooks)}}
|
||||
{{foreach $addon_hooks as $addon_hook}}
|
||||
<script type="text/javascript" src="addon/{{$addon_hook}}/{{$addon_hook}}.js"></script>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
<script type="text/javascript" src="view/js/main.js" ></script>
|
||||
<script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue