diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index aade5a5b44a20..da828cc60746a 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -294,7 +294,7 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal if (class_exists(LoadViewer::class)) { $this->eventDispatcher->dispatchTyped(new LoadViewer()); } - $this->initialState->provideInitialState('templates_path', $this->templateManager->hasTemplateDirectory() ? $this->templateManager->getTemplatePath() : null); + $this->initialState->provideInitialState('templates_path', $this->templateManager->hasTemplateDirectory() ? $this->templateManager->getTemplatePath() : false); $this->initialState->provideInitialState('templates', $this->templateManager->listCreators()); $params = []; diff --git a/lib/private/InitialStateService.php b/lib/private/InitialStateService.php index 7f9a084ef7038..2f5f4fd045292 100644 --- a/lib/private/InitialStateService.php +++ b/lib/private/InitialStateService.php @@ -69,7 +69,7 @@ public function provideInitialState(string $appName, string $key, $data): void { return; } - $this->logger->warning('Invalid data provided to provideInitialState by ' . $appName); + $this->logger->warning('Invalid '. $key . ' data provided to provideInitialState by ' . $appName); } public function provideLazyInitialState(string $appName, string $key, Closure $closure): void {