]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix language setting in config file
authorMarcin Haba <marcin.haba@bacula.pl>
Tue, 5 Sep 2017 04:13:37 +0000 (06:13 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Tue, 5 Sep 2017 04:14:01 +0000 (06:14 +0200)
gui/baculum/protected/Web/Pages/WebConfigWizard.php

index 2450e99670892539847da27cf018d546442cd0ad..3faf56e8dce0a11464eece2ba4b68e2f9bae2098 100644 (file)
@@ -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]);