Test if addon_hooks is an array before using it
This commit is contained in:
parent
b54d1b708a
commit
ba4ddb1d8d
|
@ -45,9 +45,11 @@
|
||||||
<script type="text/javascript" src="view/js/acl.js" ></script>
|
<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/asset/base64/base64.min.js" ></script>
|
||||||
<script type="text/javascript" src="view/js/addon-hooks.js" ></script>
|
<script type="text/javascript" src="view/js/addon-hooks.js" ></script>
|
||||||
|
{{if is_array($addon_hooks)}}
|
||||||
{{foreach $addon_hooks as $addon_hook}}
|
{{foreach $addon_hooks as $addon_hook}}
|
||||||
<script type="text/javascript" src="addon/{{$addon_hook}}/{{$addon_hook}}.js"></script>
|
<script type="text/javascript" src="addon/{{$addon_hook}}/{{$addon_hook}}.js"></script>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
<script type="text/javascript" src="view/js/main.js" ></script>
|
<script type="text/javascript" src="view/js/main.js" ></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user