ensure extend_app js files from extensions are loaded directly before the apps js file

This commit is contained in:
Harald Bamberger
2026-02-27 09:24:47 +01:00
parent 667a00d64b
commit 43a37021a5
+4 -2
View File
@@ -279,7 +279,6 @@ function absoluteJsImportUrl($relurl)
*/
function extendableApps($includes)
{
$start = microtime(true);
if(!isset($includes['customJSModules']))
{
return;
@@ -301,6 +300,7 @@ function extendableApps($includes)
}
$appscount = 0;
$tmpCustomJSModules = array();
foreach($includes['customJSModules'] as $item)
{
$matches = array();
@@ -321,7 +321,7 @@ function extendableApps($includes)
if(is_readable(FHCPATH . $extend_js))
{
array_unshift($includes['customJSModules'], $extend_js);
array_push($tmpCustomJSModules, $extend_js);
}
if(is_readable(FHCPATH . $extend_css))
@@ -330,7 +330,9 @@ function extendableApps($includes)
}
}
}
array_push($tmpCustomJSModules, $item);
}
$includes['customJSModules'] = $tmpCustomJSModules;
if($appscount > 0)
{