From: Marcin Haba Date: Tue, 5 Sep 2017 04:13:37 +0000 (+0200) Subject: baculum: Fix language setting in config file X-Git-Tag: Release-9.0.4~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=32f44c330510d64f221199dcd789ef00df6c4dfe;p=bacula%2Fbacula baculum: Fix language setting in config file --- diff --git a/gui/baculum/protected/Web/Pages/WebConfigWizard.php b/gui/baculum/protected/Web/Pages/WebConfigWizard.php index 2450e99670..3faf56e8dc 100644 --- a/gui/baculum/protected/Web/Pages/WebConfigWizard.php +++ b/gui/baculum/protected/Web/Pages/WebConfigWizard.php @@ -127,7 +127,7 @@ class WebConfigWizard extends BaculumWebPage $cfg_web['baculum']['login'] = $this->WebLogin->Text; $cfg_web['baculum']['password'] = $this->WebPassword->Text; $cfg_web['baculum']['debug'] = 0; - $cfg_web['baculum']['lang'] = 'en'; + $cfg_web['baculum']['lang'] = $this->Lang->SelectedValue; if (array_key_exists('users', $cfg_web) && array_key_exists($this->WebLogin->Text, $cfg_web)) { // Admin shoudn't be added to users section, only regular users unset($cfg_web['users'][$this->WebLogin->Text]);