mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-18 09:18:52 +00:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12771] Shanging substr to strpos [ticket/12771] Change var name [ticket/12771] Bug in profilefield_base_migration when used in ext
This commit is contained in:
commit
2a4930304b
1 changed files with 2 additions and 1 deletions
|
@ -79,12 +79,13 @@ abstract class profilefield_base_migration extends \phpbb\db\migration\migration
|
|||
$sql = 'SELECT lang_id
|
||||
FROM ' . LANG_TABLE;
|
||||
$result = $this->db->sql_query($sql);
|
||||
$lang_name = (strpos($this->profilefield_name, 'phpbb_') === 0) ? strtoupper(substr($this->profilefield_name, 6)) : strtoupper($this->profilefield_name);
|
||||
while ($lang_id = (int) $this->db->sql_fetchfield('lang_id'))
|
||||
{
|
||||
$insert_buffer->insert(array(
|
||||
'field_id' => $field_id,
|
||||
'lang_id' => $lang_id,
|
||||
'lang_name' => strtoupper(substr($this->profilefield_name, 6)),// Remove phpbb_ from field name
|
||||
'lang_name' => $lang_name,
|
||||
'lang_explain' => '',
|
||||
'lang_default_value' => '',
|
||||
));
|
||||
|
|
Loading…
Add table
Reference in a new issue