mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update ajax.php
This commit is contained in:
parent
f5ac81d799
commit
de763d1565
4
ajax.php
4
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']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user