From 19aed179e53f9660a7202e2e50816e1cef0f7be9 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 28 Dec 2008 23:30:09 +0000 Subject: $config to phpbb::$config git-svn-id: file:///svn/phpbb/trunk@9242 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_profile_fields.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'phpBB/includes/functions_profile_fields.php') diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php index 8ae2f7fced..4a7c4fde70 100644 --- a/phpBB/includes/functions_profile_fields.php +++ b/phpBB/includes/functions_profile_fields.php @@ -837,8 +837,6 @@ class custom_profile */ private function get_profile_field($profile_row) { - global $config; - $var_name = 'pf_' . $profile_row['field_ident']; switch ($profile_row['field_type']) @@ -988,9 +986,9 @@ class custom_profile_admin extends custom_profile */ public function get_bool_options() { - global $user, $config, $lang_defs; + global $user, $lang_defs; - $default_lang_id = $lang_defs['iso'][$config['default_lang']]; + $default_lang_id = $lang_defs['iso'][phpbb::$config['default_lang']]; $profile_row = array( 'var_name' => 'field_default_value', @@ -1018,9 +1016,9 @@ class custom_profile_admin extends custom_profile */ public function get_dropdown_options() { - global $user, $config, $lang_defs; + global $user, $lang_defs; - $default_lang_id = $lang_defs['iso'][$config['default_lang']]; + $default_lang_id = $lang_defs['iso'][phpbb::$config['default_lang']]; $profile_row[0] = array( 'var_name' => 'field_default_value', @@ -1052,9 +1050,9 @@ class custom_profile_admin extends custom_profile */ public function get_date_options() { - global $user, $config, $lang_defs; + global $user, $lang_defs; - $default_lang_id = $lang_defs['iso'][$config['default_lang']]; + $default_lang_id = $lang_defs['iso'][phpbb::$config['default_lang']]; $profile_row = array( 'var_name' => 'field_default_value', -- cgit v1.2.1