1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

Fix for if e107::js('url') is called late (after header)

This commit is contained in:
Cameron 2020-12-11 10:30:19 -08:00
parent 1d080e4f9d
commit 5bde141c18

View File

@ -1204,6 +1204,15 @@ class e_jsmanager
case 'footer':
if(true === $zone)
{
if(!empty($this->_runtime_header)) // late stage header js.
{
foreach ($this->_runtime_header as $priority => $path_array)
{
$this->renderFile($path_array, $external, 'Late Header JS include - priority #'.$priority, $mod);
}
$this->_runtime_header = array();
}
ksort($this->_runtime_footer, SORT_NUMERIC);
foreach ($this->_runtime_footer as $priority => $path_array)
{