|
@@ -87,7 +87,7 @@ abstract class Users extends Admin
|
|
|
});
|
|
|
|
|
|
if (! empty($bad)) {
|
|
|
- $this->fIswev = ['v', __('Action not available')];
|
|
|
+ $this->fIswev = ['v', 'Action not available'];
|
|
|
|
|
|
return false;
|
|
|
}
|
|
@@ -102,14 +102,14 @@ abstract class Users extends Admin
|
|
|
switch ($action) {
|
|
|
case self::ACTION_BAN:
|
|
|
if ($this->c->bans->banFromName($user->username) > 0) {
|
|
|
- $this->fIswev = ['i', __(['User is ban', $user->username])];
|
|
|
+ $this->fIswev = ['i', ['User is ban', $user->username]];
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
if (! $this->c->userRules->canBanUser($user)) {
|
|
|
- $this->fIswev = ['v', __(['You are not allowed to ban the %s', $user->username])];
|
|
|
+ $this->fIswev = ['v', ['You are not allowed to ban the %s', $user->username]];
|
|
|
if ($user->isAdmMod) {
|
|
|
- $this->fIswev = ['i', __('No ban admins message')];
|
|
|
+ $this->fIswev = ['i', 'No ban admins message'];
|
|
|
}
|
|
|
|
|
|
return false;
|
|
@@ -117,9 +117,9 @@ abstract class Users extends Admin
|
|
|
break;
|
|
|
case self::ACTION_DEL:
|
|
|
if (! $this->c->userRules->canDeleteUser($user)) {
|
|
|
- $this->fIswev = ['v', __(['You are not allowed to delete the %s', $user->username])];
|
|
|
+ $this->fIswev = ['v', ['You are not allowed to delete the %s', $user->username]];
|
|
|
if ($user->isAdmMod) {
|
|
|
- $this->fIswev = ['i', __('No delete admins message')];
|
|
|
+ $this->fIswev = ['i', 'No delete admins message'];
|
|
|
}
|
|
|
|
|
|
return false;
|
|
@@ -127,28 +127,28 @@ abstract class Users extends Admin
|
|
|
break;
|
|
|
case self::ACTION_CHG:
|
|
|
if (! $this->c->userRules->canChangeGroup($user, $profile)) {
|
|
|
- $this->fIswev = ['v', __(['You are not allowed to change group for %s', $user->username])];
|
|
|
+ $this->fIswev = ['v', ['You are not allowed to change group for %s', $user->username]];
|
|
|
if ($user->isAdmin) {
|
|
|
- $this->fIswev = ['i', __('No move admins message')];
|
|
|
+ $this->fIswev = ['i', 'No move admins message'];
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
break;
|
|
|
default:
|
|
|
- $this->fIswev = ['v', __('Action not available')];
|
|
|
+ $this->fIswev = ['v', 'Action not available'];
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
$result[] = $user->id;
|
|
|
if ($user->id === $this->user->id) {
|
|
|
- $this->fIswev = ['i', __('You are trying to change your own group')];
|
|
|
+ $this->fIswev = ['i', 'You are trying to change your own group'];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (empty($result)) {
|
|
|
- $this->fIswev = ['v', __('No users selected')];
|
|
|
+ $this->fIswev = ['v', 'No users selected'];
|
|
|
|
|
|
return false;
|
|
|
}
|