fix(files): do not include scripts for merge-index

Signed-off-by: Max <max@nextcloud.com>
pull/40065/head
Max 2 years ago committed by max-nextcloud
parent d395fa862b
commit 7ba6409270
  1. 5
      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();
}
}

Loading…
Cancel
Save