From: Marcin Haba Date: Wed, 6 Nov 2019 06:58:41 +0000 (+0100) Subject: baculum: Fix language setting in config wizard during first run X-Git-Tag: Release-9.6.0~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6f25c851bdbbf83fd3ecd3d9dcf1d25f2af4347;p=thirdparty%2Fbacula.git baculum: Fix language setting in config wizard during first run --- diff --git a/gui/baculum/protected/Web/Class/BaculumWebPage.php b/gui/baculum/protected/Web/Class/BaculumWebPage.php index 371abecc9..a9c4133d2 100644 --- a/gui/baculum/protected/Web/Class/BaculumWebPage.php +++ b/gui/baculum/protected/Web/Class/BaculumWebPage.php @@ -40,6 +40,7 @@ class BaculumWebPage extends BaculumPage { public function onPreInit($param) { parent::onPreInit($param); $this->config = $this->getModule('web_config')->getConfig(); + $this->Application->getGlobalization()->Culture = $this->getLanguage(); if (count($this->config) === 0) { if (isset($_SERVER['PHP_AUTH_USER'])) { if ($this->Service->getRequestedPagePath() != 'WebConfigWizard') { @@ -52,7 +53,6 @@ class BaculumWebPage extends BaculumPage { } } Logging::$debug_enabled = (isset($this->config['baculum']['debug']) && $this->config['baculum']['debug'] == 1); - $this->Application->getGlobalization()->Culture = $this->getLanguage(); if (!$this->IsPostBack && !$this->IsCallBack) { $this->getModule('api')->initSessionCache(true); $this->setSessionUserVars();