mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix(files): do not include scripts for merge-index
Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
parent
d395fa862b
commit
7ba6409270
1 changed files with 2 additions and 3 deletions
|
|
@ -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…
Reference in a new issue