From 3640410cc0d753ab81612c7e5c914ecfb47b27fe Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Sat, 6 May 2006 14:57:10 +0000 Subject: [PATCH] Remove references to max_warnings as we are not using the value More advanced handling of warnings (ie ability to automatically ban at a threshold is likely to follow in 3.2 instead) git-svn-id: file:///svn/phpbb/trunk@5887 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acp/acp_board.php | 1 - phpBB/includes/acp/acp_users.php | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php index 8d8a8d6277..3942a1b726 100644 --- a/phpBB/includes/acp/acp_board.php +++ b/phpBB/includes/acp/acp_board.php @@ -46,7 +46,6 @@ class acp_board 'legend2' => 'WARNINGS', 'warnings_expire_days' => array('lang' => 'WARNINGS_EXPIRE', 'type' => 'text:3:4', 'explain' => true), -// 'max_warnings' ) ); break; diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php index 7e0601d1dc..65860a48d6 100644 --- a/phpBB/includes/acp/acp_users.php +++ b/phpBB/includes/acp/acp_users.php @@ -581,14 +581,11 @@ class acp_users $data['username'] = $data['user']; unset($data['user']); - /** - * @todo $config['max_warnings'] does not exist yet - */ // Validation data $var_ary = array( 'password_confirm' => array('string', true, $config['min_pass_chars'], $config['max_pass_chars']), 'user_password' => array('string', true, $config['min_pass_chars'], $config['max_pass_chars']), - 'warnings' => array('num', 0, $config['max_warnings']), + 'warnings' => array('num'), ); // Check username if altered