]> source.dussan.org Git - nextcloud-server.git/commitdiff
Change script loading order in worflowengine 31770/head
authorLouis Chemineau <louis@chmn.me>
Thu, 31 Mar 2022 08:33:50 +0000 (10:33 +0200)
committerLouis Chemineau <louis@chmn.me>
Thu, 31 Mar 2022 08:33:50 +0000 (10:33 +0200)
Fix: https://github.com/nextcloud/server/issues/31709

Signed-off-by: Louis Chemineau <louis@chmn.me>
apps/workflowengine/lib/Listener/LoadAdditionalSettingsScriptsListener.php

index 6c38051d41a50aacb06c7039dd4b46867762087c..a3806799ff0f3919a14cb75f209c872b1a4bf25b 100644 (file)
@@ -32,7 +32,7 @@ use OCP\EventDispatcher\IEventListener;
 use OCP\Template;
 use function class_exists;
 use function function_exists;
-use function script;
+use OCP\Util;
 
 class LoadAdditionalSettingsScriptsListener implements IEventListener {
        public function handle(Event $event): void {
@@ -41,10 +41,9 @@ class LoadAdditionalSettingsScriptsListener implements IEventListener {
                        class_exists(Template::class, true);
                }
 
-               script('core', 'systemtags');
-
-               script(Application::APP_ID, [
-                       'workflowengine',
-               ]);
+               Util::addScript('core', 'files_fileinfo');
+               Util::addScript('core', 'files_client');
+               Util::addScript('core', 'systemtags');
+               Util::addScript(Application::APP_ID, 'workflowengine');
        }
 }