From 83c60496a9925f3d672514039f0c7487ba7b913a Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 4 Nov 2020 10:12:56 +0100 Subject: Document the behaviour inline Signed-off-by: Morris Jobke --- lib/private/TemplateLayout.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index 81695247af0..96f8f38877c 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -194,6 +194,8 @@ class TemplateLayout extends \OC_Template { $jsFiles = self::findJavascriptFiles(\OC_Util::$scripts); $this->assign('jsfiles', []); if ($this->config->getSystemValue('installed', false) && $renderAs != TemplateResponse::RENDER_AS_ERROR) { + // this is on purpose outside of the if statement below so that the initial state is prefilled (done in the getConfig() call) + // see https://github.com/nextcloud/server/pull/22636 for details $jsConfigHelper = new JSConfigHelper( \OC::$server->getL10N('lib'), \OC::$server->query(Defaults::class), -- cgit v1.2.3