Browse Source

Document the behaviour inline

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/23888/head
Morris Jobke 5 years ago
parent
commit
83c60496a9
No known key found for this signature in database GPG Key ID: FE03C3A163FEDE68
  1. 2
      lib/private/TemplateLayout.php

2
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),

Loading…
Cancel
Save