Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/PageController.php')
-rw-r--r--lib/Controller/PageController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index effb3e07..3cf92ad6 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -75,7 +75,8 @@ class PageController extends Controller {
$this->eventDispatcher->dispatch(LoadSidebar::class, new LoadSidebar());
$this->eventDispatcher->dispatch(LoadViewer::class, new LoadViewer());
- $this->initialStateService->provideInitialState($this->appName, 'mimes', Application::MIMES);
+ $this->initialStateService->provideInitialState($this->appName, 'image-mimes', Application::IMAGE_MIMES);
+ $this->initialStateService->provideInitialState($this->appName, 'video-mimes', Application::VIDEO_MIMES);
$this->initialStateService->provideInitialState($this->appName, 'maps', $this->appManager->isEnabledForUser('maps') === true);
Util::addScript($this->appName, 'photos-main');