aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Controller/ViewController.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2023-09-21 12:15:11 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2023-09-21 12:40:42 +0200
commita5a8655bebb8652206ea5aa886699f706739e1fe (patch)
tree4a30ab0649b868590fa234561530343fe75b091c /apps/files/lib/Controller/ViewController.php
parenta1a1b990e62c046d17fe0a2f7991f102a93361c0 (diff)
downloadnextcloud-server-a5a8655bebb8652206ea5aa886699f706739e1fe.tar.gz
nextcloud-server-a5a8655bebb8652206ea5aa886699f706739e1fe.zip
fix: avoid side-effect imports
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/lib/Controller/ViewController.php')
-rw-r--r--apps/files/lib/Controller/ViewController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php
index 8fe7eea01a0..ca0760fd5e2 100644
--- a/apps/files/lib/Controller/ViewController.php
+++ b/apps/files/lib/Controller/ViewController.php
@@ -217,6 +217,7 @@ class ViewController extends Controller {
}
// Load the files we need
+ \OCP\Util::addInitScript('files', 'init');
\OCP\Util::addStyle('files', 'merged');
\OCP\Util::addScript('files', 'merged-index', 'files');
\OCP\Util::addScript('files', 'main');