From de763d156579a5ec120e8cdb2d8756102460a55f Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 5 Oct 2023 10:36:10 +0700 Subject: [PATCH] Update ajax.php --- ajax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ajax.php b/ajax.php index d31e87da..63bb344c 100644 --- a/ajax.php +++ b/ajax.php @@ -275,7 +275,7 @@ class ajax_common */ function check_admin_session() { - global $user; + global $user, $lang; if (!$user->data['session_admin']) { @@ -291,7 +291,7 @@ class ajax_common ); if (!$user->login($login_args, true)) { - $this->ajax_die('Wrong password'); + $this->ajax_die($lang['ERROR_LOGIN']); } } }