mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Use translations instead of untranslatable strings (#606)
This commit is contained in:
parent
5ab7de5bf9
commit
14b5db1413
4 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ $mode = (string)$this->request['mode'];
|
|||
$user_id = (int)$this->request['user_id'];
|
||||
|
||||
if (!$user_id or !$u_data = get_userdata($user_id)) {
|
||||
$this->ajax_die('Invalid user_id');
|
||||
$this->ajax_die($lang['NO_USER_ID_SPECIFIED']);
|
||||
}
|
||||
|
||||
if (!IS_ADMIN && $user_id != $user->id) {
|
||||
|
|
|
@ -17,7 +17,7 @@ $user_id = (int)$this->request['user_id'];
|
|||
$new_opt = json_decode($this->request['user_opt'], true);
|
||||
|
||||
if (!$user_id or !$u_data = get_userdata($user_id)) {
|
||||
$this->ajax_die('invalid user_id');
|
||||
$this->ajax_die($lang['NO_USER_ID_SPECIFIED']);
|
||||
}
|
||||
|
||||
if (!is_array($new_opt)) {
|
||||
|
|
|
@ -17,7 +17,7 @@ $ranks = $datastore->get('ranks');
|
|||
$rank_id = (int)$this->request['rank_id'];
|
||||
|
||||
if (!$user_id = (int)$this->request['user_id'] or !$profiledata = get_userdata($user_id)) {
|
||||
$this->ajax_die("invalid user_id: $user_id");
|
||||
$this->ajax_die($lang['NO_USER_ID_SPECIFIED']);
|
||||
}
|
||||
|
||||
if ($rank_id != 0 && !isset($ranks[$rank_id])) {
|
||||
|
|
|
@ -14,7 +14,7 @@ if (!defined('IN_AJAX')) {
|
|||
global $lang, $user;
|
||||
|
||||
if (!$user_id = (int)$this->request['user_id'] or !$profiledata = get_userdata($user_id)) {
|
||||
$this->ajax_die("invalid user_id: $user_id");
|
||||
$this->ajax_die($lang['NO_USER_ID_SPECIFIED']);
|
||||
}
|
||||
|
||||
if (!$mode = (string)$this->request['mode']) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue