diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2006-08-02 15:53:19 +0000 | 
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-08-02 15:53:19 +0000 | 
| commit | b15a3111be0c51410e302500df9b4cbce9cd38d3 (patch) | |
| tree | 97fee705ff510123c39fb8f6fe6e7280ce18cf7f /phpBB/includes/functions_profile_fields.php | |
| parent | 48a48aa86d578fb61524f6d3e4ecf2dc8f2b9256 (diff) | |
| download | forums-b15a3111be0c51410e302500df9b4cbce9cd38d3.tar forums-b15a3111be0c51410e302500df9b4cbce9cd38d3.tar.gz forums-b15a3111be0c51410e302500df9b4cbce9cd38d3.tar.bz2 forums-b15a3111be0c51410e302500df9b4cbce9cd38d3.tar.xz forums-b15a3111be0c51410e302500df9b4cbce9cd38d3.zip | |
- fixing some bugs
- removed file_exists calls for auth plugins since they need to be there once set up
git-svn-id: file:///svn/phpbb/trunk@6228 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_profile_fields.php')
| -rw-r--r-- | phpBB/includes/functions_profile_fields.php | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php index 61ffc7f46d..cbeea2b13d 100644 --- a/phpBB/includes/functions_profile_fields.php +++ b/phpBB/includes/functions_profile_fields.php @@ -534,7 +534,7 @@ class custom_profile  		global $user;  		$profile_row['field_ident'] = (isset($profile_row['var_name'])) ? $profile_row['var_name'] : 'pf_' . $profile_row['field_ident']; -		$user_ident = str_replace('pf_', '', $profile_row['field_ident']); +		$user_ident = '_' . str_replace('pf_', '', $profile_row['field_ident']);  		// checkbox - only testing for isset  		if ($profile_row['field_type'] == FIELD_BOOL && $profile_row['field_length'] == 2) @@ -601,7 +601,7 @@ class custom_profile  		global $user, $template;  		$profile_row['field_ident'] = (isset($profile_row['var_name'])) ? $profile_row['var_name'] : 'pf_' . $profile_row['field_ident']; -		$user_ident = str_replace('pf_', '', $profile_row['field_ident']); +		$user_ident = '_' . str_replace('pf_', '', $profile_row['field_ident']);  		$now = getdate(); @@ -803,7 +803,8 @@ class custom_profile  				$now = getdate();  				$row['field_default_value'] = sprintf('%2d-%2d-%4d', $now['mday'], $now['mon'], $now['year']);  			} -			$cp_data[$row['field_ident']] = (in_array($row['field_type'], array(FIELD_TEXT, FIELD_STRING))) ? $row['lang_default_value'] : $row['field_default_value']; + +			$cp_data['_' . $row['field_ident']] = (in_array($row['field_type'], array(FIELD_TEXT, FIELD_STRING))) ? $row['lang_default_value'] : $row['field_default_value'];  		}  		$db->sql_freeresult($result); | 
