aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-10-06 22:27:17 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-10-06 22:27:17 +0000
commit6c49652a19d7f6b4a8ec670851a8db5d7cf735be (patch)
treecf77b239ea38a23cfb2d4a117d6fbd6a4b57ce9f /phpBB/includes/acp
parent7777bd5f502241e6e15e1732d3dacb3ad1e2026d (diff)
downloadforums-6c49652a19d7f6b4a8ec670851a8db5d7cf735be.tar
forums-6c49652a19d7f6b4a8ec670851a8db5d7cf735be.tar.gz
forums-6c49652a19d7f6b4a8ec670851a8db5d7cf735be.tar.bz2
forums-6c49652a19d7f6b4a8ec670851a8db5d7cf735be.tar.xz
forums-6c49652a19d7f6b4a8ec670851a8db5d7cf735be.zip
#4518
git-svn-id: file:///svn/phpbb/trunk@6449 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/acp_profile.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php
index 39b1a16737..e5b998f535 100644
--- a/phpBB/includes/acp/acp_profile.php
+++ b/phpBB/includes/acp/acp_profile.php
@@ -135,7 +135,7 @@ class acp_profile
foreach ($old_table_cols as $declaration)
{
$entities = preg_split('#\s+#', trim($declaration));
- if ($entities[0] !== '_' . $field_ident)
+ if ($entities[0] !== 'pf_' . $field_ident)
{
$column_list[] = $entities[0];
}
@@ -143,7 +143,7 @@ class acp_profile
$columns = implode(',', $column_list);
- $new_table_cols = preg_replace('/' . '_' . $field_ident . '[^,]+,/', '', $new_table_cols);
+ $new_table_cols = preg_replace('/' . 'pf_' . $field_ident . '[^,]+,/', '', $new_table_cols);
// create a new table and fill it up. destroy the temp one
$db->sql_query('CREATE TABLE ' . PROFILE_FIELDS_DATA_TABLE . ' (' . $new_table_cols . ');');
@@ -154,7 +154,7 @@ class acp_profile
break;
default:
- $db->sql_query('ALTER TABLE ' . PROFILE_FIELDS_DATA_TABLE . " DROP _$field_ident");
+ $db->sql_query('ALTER TABLE ' . PROFILE_FIELDS_DATA_TABLE . " DROP pf_$field_ident");
}
$order = 0;
@@ -968,7 +968,7 @@ class acp_profile
if ($action == 'create')
{
- $field_ident = '_' . $field_ident;
+ $field_ident = 'pf_' . $field_ident;
$profile_sql[] = $this->add_field_ident($field_ident, $field_type);
}
@@ -1176,7 +1176,7 @@ class acp_profile
}
else
{
- add_log('admin', 'LOG_PROFILE_FIELD_CREATE', substr($field_ident, 1) . ':' . $cp->vars['lang_name']);
+ add_log('admin', 'LOG_PROFILE_FIELD_CREATE', substr($field_ident, 3) . ':' . $cp->vars['lang_name']);
trigger_error($user->lang['ADDED_PROFILE_FIELD'] . adm_back_link($this->u_action));
}
}