diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php
index 365d9226e0..7a94f2bfb6 100644
--- a/phpBB/includes/acp/acp_board.php
+++ b/phpBB/includes/acp/acp_board.php
@@ -13,6 +13,8 @@
*/
class acp_board
{
+ var $new_config = array();
+
function main($id, $mode)
{
global $db, $user, $auth, $template;
@@ -355,7 +357,7 @@ class acp_board
$method = 'admin_' . $method;
if (function_exists($method))
{
- if ($fields = $method($new))
+ if ($fields = $method($this->new_config))
{
// Check if we need to create config fields for this plugin
foreach ($fields['config'] as $field)
@@ -382,7 +384,7 @@ class acp_board
function select_auth_method($selected_method, $key = '')
{
- global $new, $phpbb_root_path, $phpEx;
+ global $phpbb_root_path, $phpEx;
$auth_plugins = array();
@@ -451,9 +453,9 @@ class acp_board
function username_length($value, $key = '')
{
- global $new, $user;
+ global $user;
- return ' ' . $user->lang['MIN_CHARS'] . ' ' . $user->lang['MAX_CHARS'];
+ return ' ' . $user->lang['MIN_CHARS'] . ' ' . $user->lang['MAX_CHARS'];
}
function select_username_chars($selected_value, $key)
@@ -473,9 +475,9 @@ class acp_board
function password_length($value, $key)
{
- global $new, $user;
+ global $user;
- return ' ' . $user->lang['MIN_CHARS'] . ' ' . $user->lang['MAX_CHARS'];
+ return ' ' . $user->lang['MIN_CHARS'] . ' ' . $user->lang['MAX_CHARS'];
}
function select_password_chars($selected_value, $key)
@@ -495,14 +497,14 @@ class acp_board
function bump_interval($value, $key)
{
- global $new, $user;
+ global $user;
$s_bump_type = '';
$types = array('m' => 'MINUTES', 'h' => 'HOURS', 'd' => 'DAYS');
foreach ($types as $type => $lang)
{
- $selected = ($new['bump_type'] == $type) ? 'selected="selected" ' : '';
- $s_bump_type .= '';
+ $selected = ($this->new_config['bump_type'] == $type) ? ' selected="selected"' : '';
+ $s_bump_type .= '';
}
return ' ';
@@ -510,11 +512,11 @@ class acp_board
function board_disable($value, $key)
{
- global $new, $user;
+ global $user;
$radio_ary = array(1 => 'YES', 0 => 'NO');
- return h_radio('config[board_disable]', $radio_ary, $value) . '
';
+ return h_radio('config[board_disable]', $radio_ary, $value) . '
';
}
}