diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-11-04 10:12:56 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-11-04 10:13:15 +0100 |
commit | 83c60496a9925f3d672514039f0c7487ba7b913a (patch) | |
tree | e7427f2b8f9541f0b94564d741c30d88084dc5b8 /lib | |
parent | 8eb0db5078944f8d0bea8b641f69437acf59e9ab (diff) | |
download | nextcloud-server-83c60496a9925f3d672514039f0c7487ba7b913a.tar.gz nextcloud-server-83c60496a9925f3d672514039f0c7487ba7b913a.zip |
Document the behaviour inline
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TemplateLayout.php | 2 |
1 files changed, 2 insertions, 0 deletions
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), |