Permalink
Browse files

fixed i18n login bug

  • Loading branch information...
serghey-rodin committed May 11, 2013
1 parent fd4e68b commit aeeaab39aa31948d7e7994d73c45e34a00508e02
Showing with 2 additions and 0 deletions.
  1. +2 −0 web/login/index.php
View
@@ -33,7 +33,9 @@
exec(VESTA_CMD ."v-check-user-password ".$v_user." ".$v_password." '".$_SERVER["REMOTE_ADDR"]."'", $output, $return_var);
if ( $return_var > 0 ) {
$ERROR = "<a class=\"error\">".__('Invalid username or password')."</a>";
// 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'])) {

0 comments on commit aeeaab3

Please sign in to comment.