diff options
author | Max <max@nextcloud.com> | 2023-08-27 14:18:28 +0200 |
---|---|---|
committer | max-nextcloud <max@nextcloud.com> | 2023-09-26 21:37:45 +0200 |
commit | 7ba64092709a227f334a76b8d550ffbbbcb2682a (patch) | |
tree | 9794f23fed026eb5f24506b0e435e210dc462cde /apps/files/lib | |
parent | d395fa862b79ba3720ed5a1494a7c6ebb031b356 (diff) | |
download | nextcloud-server-7ba64092709a227f334a76b8d550ffbbbcb2682a.tar.gz nextcloud-server-7ba64092709a227f334a76b8d550ffbbbcb2682a.zip |
fix(files): do not include scripts for merge-index
Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index ca0760fd5e2..8764e1fabd6 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -172,7 +172,7 @@ class ViewController extends Controller { * @NoCSRFRequired * @NoAdminRequired * @UseSession - * + * * @param string $dir * @param string $view * @param string $fileid @@ -219,7 +219,6 @@ 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'); $userId = $this->userSession->getUser()->getUID(); @@ -393,7 +392,7 @@ class ViewController extends Controller { } return new RedirectResponse($this->urlGenerator->linkToRoute('files.view.indexViewFileid', $params)); } - + throw new NotFoundException(); } } |