Joas Schilling 4 days ago
committed by GitHub
parent
commit
940b035218
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 9
      lib/public/Util.php

9
lib/public/Util.php

@ -168,6 +168,15 @@ class Util {
} }
if ($prepend) { if ($prepend) {
// Make sure the scripts of prepended applications are prepended within
// the apps as well, so that e.g. Talk can prepend itself on `/call/123456`
// URLs within it's template file, instead of being at the end, because
// other apps already queued after `core` using an earlier event or the
// `Application::boot()` method.
$appDeps = self::$scriptDeps[$application] ?? [];
unset(self::$scriptDeps[$application]);
self::$scriptDeps = [$application => $appDeps] + self::$scriptDeps;
array_unshift(self::$scripts[$application], $path); array_unshift(self::$scripts[$application], $path);
} else { } else {
self::$scripts[$application][] = $path; self::$scripts[$application][] = $path;

Loading…
Cancel
Save