From fcb0c89962242fec72d7ed01c7049601a696e4be Mon Sep 17 00:00:00 2001 From: Henry Sudhof Date: Sun, 22 Jul 2007 14:04:26 +0000 Subject: Cleaning up (#13689) Also removed the useless login box from the ACP. git-svn-id: file:///svn/phpbb/trunk@7919 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_user.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'phpBB/includes/functions_user.php') diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index e091c796d2..96f9b75964 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -678,7 +678,7 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas } else { - trigger_error($user->lang['LENGTH_BAN_INVALID']); + trigger_error('LENGTH_BAN_INVALID'); } } } @@ -730,11 +730,11 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas $clean_name = utf8_clean_string($username); if ($clean_name == $user->data['username_clean']) { - trigger_error($user->lang['CANNOT_BAN_YOURSELF']); + trigger_error('CANNOT_BAN_YOURSELF'); } if (in_array($clean_name, $founder_names)) { - trigger_error($user->lang['CANNOT_BAN_FOUNDER']); + trigger_error('CANNOT_BAN_FOUNDER'); } $sql_usernames[] = $clean_name; } @@ -743,7 +743,7 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas // Make sure we have been given someone to ban if (!sizeof($sql_usernames)) { - trigger_error($user->lang['NO_USER_SPECIFIED']); + trigger_error('NO_USER_SPECIFIED'); } $sql = 'SELECT user_id @@ -772,7 +772,7 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas } else { - trigger_error($user->lang['NO_USERS']); + trigger_error('NO_USERS'); } $db->sql_freeresult($result); } -- cgit v1.2.1