diff options
| author | Carlo <carlo@phpbbitalia.net> | 2014-08-07 17:53:30 +0200 |
|---|---|---|
| committer | Carlo <carlo@phpbbitalia.net> | 2014-08-10 14:26:12 +0200 |
| commit | 51f534c82ed4adf228859e6faf7b283f4823a868 (patch) | |
| tree | 409812bbdf2279e8a936d385b3c6e3eadc6ca6ee | |
| parent | 03040de75a2c482b982fba51bf3477036ac23ed8 (diff) | |
| download | forums-51f534c82ed4adf228859e6faf7b283f4823a868.tar forums-51f534c82ed4adf228859e6faf7b283f4823a868.tar.gz forums-51f534c82ed4adf228859e6faf7b283f4823a868.tar.bz2 forums-51f534c82ed4adf228859e6faf7b283f4823a868.tar.xz forums-51f534c82ed4adf228859e6faf7b283f4823a868.zip | |
[ticket/12765] Execute query directly from db tools
PHPBB3-12765
| -rw-r--r-- | phpBB/includes/acp/acp_profile.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index 41dfb1893a..046281596c 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -881,10 +881,8 @@ class acp_profile { $field_ident = 'pf_' . $field_ident; - $db_tools = new \phpbb\db\tools($db, true); - $field_intent_sql = $db_tools->sql_column_add(PROFILE_FIELDS_DATA_TABLE, $field_ident, array($profile_field->get_database_column_type(), null)); - - $profile_sql[] = $field_intent_sql[0]; + $db_tools = $phpbb_container->get('dbal.tools'); + $db_tools->sql_column_add(PROFILE_FIELDS_DATA_TABLE, $field_ident, array($profile_field->get_database_column_type(), null)); } $sql_ary = array( |
