diff options
-rw-r--r-- | lib/private/legacy/template/functions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/legacy/template/functions.php b/lib/private/legacy/template/functions.php index 208d9fb3f9f..65179a94108 100644 --- a/lib/private/legacy/template/functions.php +++ b/lib/private/legacy/template/functions.php @@ -96,12 +96,12 @@ function emit_script_tag($src, $script_content='') { * @param hash $obj all the script information from template */ function emit_script_loading_tags($obj) { - if (!empty($obj['inline_ocjs'])) { - emit_script_tag('', $obj['inline_ocjs']); - } foreach($obj['jsfiles'] as $jsfile) { emit_script_tag($jsfile, ''); } + if (!empty($obj['inline_ocjs'])) { + emit_script_tag('', $obj['inline_ocjs']); + } } /** |