diff options
author | Stanislav Atanasov <lucifer@anavaro.com> | 2014-07-08 22:01:49 +0300 |
---|---|---|
committer | Stanislav Atanasov <lucifer@anavaro.com> | 2014-07-08 22:01:49 +0300 |
commit | c468a5d8d44459b7baa40f2b3470ff296d9bc31c (patch) | |
tree | ec6f9b8c327173580ba67521474c5fb1da531399 | |
parent | 4cec5bcd556e0edcf43bf25d628c552106e97b13 (diff) | |
download | forums-c468a5d8d44459b7baa40f2b3470ff296d9bc31c.tar forums-c468a5d8d44459b7baa40f2b3470ff296d9bc31c.tar.gz forums-c468a5d8d44459b7baa40f2b3470ff296d9bc31c.tar.bz2 forums-c468a5d8d44459b7baa40f2b3470ff296d9bc31c.tar.xz forums-c468a5d8d44459b7baa40f2b3470ff296d9bc31c.zip |
[ticket/12786] Correcting some tabs
Some tabs needed corection
PHPBB3-12786
-rw-r--r-- | phpBB/phpbb/db/migration/profilefield_base_migration.php | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/phpBB/phpbb/db/migration/profilefield_base_migration.php b/phpBB/phpbb/db/migration/profilefield_base_migration.php index 578ce52d1c..e66e5fd080 100644 --- a/phpBB/phpbb/db/migration/profilefield_base_migration.php +++ b/phpBB/phpbb/db/migration/profilefield_base_migration.php @@ -24,17 +24,17 @@ abstract class profilefield_base_migration extends \phpbb\db\migration\migration /** * Language data should be in array -> each language_data in separate key * array( - * array( - * 'option_id' => value, - * 'field_type' => value, - * 'lang_value' => value, - * ), - * array( - * 'option_id' => value, - * 'field_type' => value, - * 'lang_value' => value, - * ), - * ) + * array( + * 'option_id' => value, + * 'field_type' => value, + * 'lang_value' => value, + * ), + * array( + * 'option_id' => value, + * 'field_type' => value, + * 'lang_value' => value, + * ), + * ) */ protected $profilefield_language_data; @@ -138,7 +138,7 @@ abstract class profilefield_base_migration extends \phpbb\db\migration\migration $insert_buffer->insert(array_merge(array( 'field_id' => $field_id, 'lang_id' => $lang_id, - ), $language_data)); + ), $language_data)); } } $this->db->sql_freeresult($result); @@ -153,16 +153,16 @@ abstract class profilefield_base_migration extends \phpbb\db\migration\migration { $field_id = $this->get_custom_profile_field_id(); - $sql = 'DELETE FROM ' . PROFILE_FIELDS_TABLE . ' - WHERE field_id = ' . $field_id; + $sql = 'DELETE FROM ' . PROFILE_FIELDS_TABLE . ' + WHERE field_id = ' . $field_id; $this->db->sql_query($sql); - $sql = 'DELETE FROM ' . PROFILE_LANG_TABLE . ' - WHERE field_id = ' . $field_id; + $sql = 'DELETE FROM ' . PROFILE_LANG_TABLE . ' + WHERE field_id = ' . $field_id; $this->db->sql_query($sql); - $sql = 'DELETE FROM ' . PROFILE_FIELDS_LANG_TABLE . ' - WHERE field_id = ' . $field_id; + $sql = 'DELETE FROM ' . PROFILE_FIELDS_LANG_TABLE . ' + WHERE field_id = ' . $field_id; $this->db->sql_query($sql); } @@ -172,9 +172,9 @@ abstract class profilefield_base_migration extends \phpbb\db\migration\migration */ public function get_custom_profile_field_id() { - $sql = 'SELECT field_id - FROM ' . PROFILE_FIELDS_TABLE . " - WHERE field_name = '" . $this->profilefield_name . "'"; + $sql = 'SELECT field_id + FROM ' . PROFILE_FIELDS_TABLE . " + WHERE field_name = '" . $this->profilefield_name . "'"; $result = $this->db->sql_query($sql); $field_id = (int) $this->db->sql_fetchfield('field_id'); $this->db->sql_freeresult($result); |