From 271e9caa8c742c80c2301a91b45f8a35b0d3d024 Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Fri, 27 May 2005 21:16:24 +0000 Subject: Fix a problem with Admin Profile (text) Fields and registration git-svn-id: file:///svn/phpbb/trunk@5154 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_profile_fields.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (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 12a4acd530..e29cb5305b 100644 --- a/phpBB/includes/functions_profile_fields.php +++ b/phpBB/includes/functions_profile_fields.php @@ -554,12 +554,14 @@ class custom_profile function generate_text($profile_row, $preview = false) { global $template; - global $user; + global $user, $phpEx, $phpbb_root_path; $value = $this->get_var('', $profile_row, $profile_row['lang_default_value'], $preview); if ($preview == false) { + include_once($phpbb_root_path . "includes/message_parser.$phpEx"); + include_once($phpbb_root_path . 'includes/functions_posting.'.$phpEx); $message_parser = new parse_message(); $message_parser->message = $value; $message_parser->decode_message($user->profile_fields[$profile_row['field_ident'] . '_bbcode_uid']); -- cgit v1.2.1