diff --git a/core/src/Revolution/modManagerController.php b/core/src/Revolution/modManagerController.php index 4b09ab599d..fd1212ad9b 100644 --- a/core/src/Revolution/modManagerController.php +++ b/core/src/Revolution/modManagerController.php @@ -787,7 +787,6 @@ public function registerCssJs() $cssjs[] = $scr; } - $lastjs = []; foreach ($this->head['lastjs'] as $js) { $lastjs[] = $js; @@ -798,8 +797,14 @@ public function registerCssJs() } } - $this->modx->smarty->assign('cssjs', $cssjs); + + $jsbody = []; + foreach ($this->modx->jscripts as $scr) { + $scr = $this->_postfixVersionToScript($scr, $versionPostFix); + $jsbody[] = $scr; + } + $this->modx->smarty->assign('jsbody', $jsbody); } /** diff --git a/manager/templates/default/footer.tpl b/manager/templates/default/footer.tpl index cb467824f3..f2c0510154 100644 --- a/manager/templates/default/footer.tpl +++ b/manager/templates/default/footer.tpl @@ -4,5 +4,9 @@ +{foreach from=$jsbody item=scr} + {$scr} +{/foreach} +