mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Fix for if e107::js('url') is called late (after header)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user