Skip to content

Commit aeeaab3

Browse files
committed
fixed i18n login bug
1 parent fd4e68b commit aeeaab3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web/login/index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
exec(VESTA_CMD ."v-check-user-password ".$v_user." ".$v_password." '".$_SERVER["REMOTE_ADDR"]."'", $output, $return_var);
3434
if ( $return_var > 0 ) {
3535
$ERROR = "<a class=\"error\">".__('Invalid username or password')."</a>";
36+
3637
// Set system language
38+
unset($output);
3739
exec (VESTA_CMD . "v-list-sys-config json", $output, $return_var);
3840
$data = json_decode(implode('', $output), true);
3941
if (!empty( $data['config']['LANGUAGE'])) {

0 commit comments

Comments
 (0)