aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_profile_fields.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-12-28 23:30:09 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-12-28 23:30:09 +0000
commit19aed179e53f9660a7202e2e50816e1cef0f7be9 (patch)
treee2707fd68720f206c88f8bcaff6e2fc3173c9c94 /phpBB/includes/functions_profile_fields.php
parent4ded6cf5eef0892f9ef1d7351664e1d78445c419 (diff)
downloadforums-19aed179e53f9660a7202e2e50816e1cef0f7be9.tar
forums-19aed179e53f9660a7202e2e50816e1cef0f7be9.tar.gz
forums-19aed179e53f9660a7202e2e50816e1cef0f7be9.tar.bz2
forums-19aed179e53f9660a7202e2e50816e1cef0f7be9.tar.xz
forums-19aed179e53f9660a7202e2e50816e1cef0f7be9.zip
$config to phpbb::$config
git-svn-id: file:///svn/phpbb/trunk@9242 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_profile_fields.php')
-rw-r--r--phpBB/includes/functions_profile_fields.php14
1 files changed, 6 insertions, 8 deletions
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',