From aeeaab39aa31948d7e7994d73c45e34a00508e02 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sat, 11 May 2013 12:16:21 +0300 Subject: [PATCH] fixed i18n login bug --- web/login/index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/login/index.php b/web/login/index.php index 778f30c5..f34865cb 100644 --- a/web/login/index.php +++ b/web/login/index.php @@ -33,7 +33,9 @@ if (isset($_POST['user']) && isset($_POST['password'])) { exec(VESTA_CMD ."v-check-user-password ".$v_user." ".$v_password." '".$_SERVER["REMOTE_ADDR"]."'", $output, $return_var); if ( $return_var > 0 ) { $ERROR = "".__('Invalid username or password').""; + // Set system language + unset($output); exec (VESTA_CMD . "v-list-sys-config json", $output, $return_var); $data = json_decode(implode('', $output), true); if (!empty( $data['config']['LANGUAGE'])) {