diff options
author | Igor Wiedler <igor@wiedler.ch> | 2010-09-22 21:58:20 +0200 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2010-09-25 20:32:15 +0200 |
commit | fccd7f0ab5ab559dc89be6af9e582a986af8bb13 (patch) | |
tree | 65b2c96dc13203a75f104d3ee2b79b0756bc4631 /phpBB/includes/acp/acp_profile.php | |
parent | 15883dfac22c8a5660c0400c565ba980eaf6f618 (diff) | |
download | forums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.tar forums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.tar.gz forums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.tar.bz2 forums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.tar.xz forums-fccd7f0ab5ab559dc89be6af9e582a986af8bb13.zip |
[feature/request-class] Convert any direct access to $_* to use $request
PHPBB3-9716
Diffstat (limited to 'phpBB/includes/acp/acp_profile.php')
-rw-r--r-- | phpBB/includes/acp/acp_profile.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index 2288a0728b..776a59c8c7 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -30,6 +30,7 @@ class acp_profile { global $config, $db, $user, $auth, $template, $cache; global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix; + global $request; include($phpbb_root_path . 'includes/functions_posting.' . $phpEx); include($phpbb_root_path . 'includes/functions_user.' . $phpEx); @@ -487,7 +488,8 @@ class acp_profile $cp->vars['field_default_value_day'] = $now['mday']; $cp->vars['field_default_value_month'] = $now['mon']; $cp->vars['field_default_value_year'] = $now['year']; - $var = $_POST['field_default_value'] = 'now'; + $var = 'now'; + $request->overwrite('field_default_value', $var, phpbb_request_interface::POST); } else { @@ -496,7 +498,8 @@ class acp_profile $cp->vars['field_default_value_day'] = request_var('field_default_value_day', 0); $cp->vars['field_default_value_month'] = request_var('field_default_value_month', 0); $cp->vars['field_default_value_year'] = request_var('field_default_value_year', 0); - $var = $_POST['field_default_value'] = sprintf('%2d-%2d-%4d', $cp->vars['field_default_value_day'], $cp->vars['field_default_value_month'], $cp->vars['field_default_value_year']); + $var = sprintf('%2d-%2d-%4d', $cp->vars['field_default_value_day'], $cp->vars['field_default_value_month'], $cp->vars['field_default_value_year']); + $request->overwrite('field_default_value', $var, phpbb_request_interface::POST); } else { @@ -688,7 +691,7 @@ class acp_profile } else { - $_new_key_ary[$key] = (is_array($_REQUEST[$key])) ? utf8_normalize_nfc(request_var($key, array(''), true)) : utf8_normalize_nfc(request_var($key, '', true)); + $_new_key_ary[$key] = ($request->is_array($key)) ? utf8_normalize_nfc(request_var($key, array(''), true)) : utf8_normalize_nfc(request_var($key, '', true)); } } } @@ -1623,4 +1626,4 @@ class acp_profile } } -?> +?>
\ No newline at end of file |