diff --git a/lib/formfields/admin/admin/formfield.admin_add.php b/lib/formfields/admin/admin/formfield.admin_add.php index 8ffb64d8..544e2ce0 100644 --- a/lib/formfields/admin/admin/formfield.admin_add.php +++ b/lib/formfields/admin/admin/formfield.admin_add.php @@ -23,6 +23,7 @@ * @license https://files.froxlor.org/misc/COPYING.txt GPLv2 */ +use Froxlor\Language; use Froxlor\Settings; use Froxlor\System\Crypt; @@ -59,7 +60,7 @@ return [ 'def_language' => [ 'label' => lng('login.language'), 'type' => 'select', - 'select_var' => $languages, + 'select_var' => Language::getLanguages(), 'selected' => $userinfo['language'] ], diff --git a/lib/formfields/admin/admin/formfield.admin_edit.php b/lib/formfields/admin/admin/formfield.admin_edit.php index 6733d034..7c17b6b4 100644 --- a/lib/formfields/admin/admin/formfield.admin_edit.php +++ b/lib/formfields/admin/admin/formfield.admin_edit.php @@ -23,6 +23,7 @@ * @license https://files.froxlor.org/misc/COPYING.txt GPLv2 */ +use Froxlor\Language; use Froxlor\Settings; use Froxlor\System\Crypt; @@ -66,7 +67,7 @@ return [ 'def_language' => [ 'label' => lng('login.language'), 'type' => 'select', - 'select_var' => $languages, + 'select_var' => Language::getLanguages(), 'selected' => $result['def_language'], 'visible' => $result['adminid'] != $userinfo['userid'] ], diff --git a/lib/formfields/admin/customer/formfield.customer_add.php b/lib/formfields/admin/customer/formfield.customer_add.php index 5fc508e7..b4d94023 100644 --- a/lib/formfields/admin/customer/formfield.customer_add.php +++ b/lib/formfields/admin/customer/formfield.customer_add.php @@ -23,6 +23,7 @@ * @license https://files.froxlor.org/misc/COPYING.txt GPLv2 */ +use Froxlor\Language; use Froxlor\Settings; use Froxlor\System\Crypt; @@ -76,7 +77,7 @@ return [ 'def_language' => [ 'label' => lng('login.language'), 'type' => 'select', - 'select_var' => $languages, + 'select_var' => Language::getLanguages(), 'selected' => Settings::Get('panel.standardlanguage') ], 'api_allowed' => [ diff --git a/lib/formfields/admin/customer/formfield.customer_edit.php b/lib/formfields/admin/customer/formfield.customer_edit.php index e1aac3cf..9097aef6 100644 --- a/lib/formfields/admin/customer/formfield.customer_edit.php +++ b/lib/formfields/admin/customer/formfield.customer_edit.php @@ -23,6 +23,7 @@ * @license https://files.froxlor.org/misc/COPYING.txt GPLv2 */ +use Froxlor\Language; use Froxlor\Settings; use Froxlor\System\Crypt; @@ -75,7 +76,7 @@ return [ 'def_language' => [ 'label' => lng('login.language'), 'type' => 'select', - 'select_var' => $languages, + 'select_var' => Language::getLanguages(), 'selected' => $result['def_language'] ], 'api_allowed' => [