mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 07:18:08 +02:00
[ticket/14771] fix white space
PHPBB3-14771
This commit is contained in:
committed by
Marc Alexander
parent
b2291e4e3c
commit
11fb872e33
@@ -23,11 +23,11 @@ class add_audio_files_attachment_group extends \phpbb\db\migration\migration
|
|||||||
public function update_data()
|
public function update_data()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['custom', [[$this, 'add_audio_files_attachment_group']]],
|
['custom', [[$this, 'add_audio_files']]],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function add_audio_files_attachment_group()
|
public function add_audio_files()
|
||||||
{
|
{
|
||||||
$sql = 'SELECT group_id
|
$sql = 'SELECT group_id
|
||||||
FROM ' . $this->table_prefix . 'extension_groups
|
FROM ' . $this->table_prefix . 'extension_groups
|
||||||
@@ -58,7 +58,7 @@ class add_audio_files_attachment_group extends \phpbb\db\migration\migration
|
|||||||
|
|
||||||
$audio_extensions = ['mp3', 'wav', 'm4a', 'ogg', 'webm'];
|
$audio_extensions = ['mp3', 'wav', 'm4a', 'ogg', 'webm'];
|
||||||
|
|
||||||
foreach($audio_extensions as $audio_extension)
|
foreach ($audio_extensions as $audio_extension)
|
||||||
{
|
{
|
||||||
$sql = 'SELECT group_id
|
$sql = 'SELECT group_id
|
||||||
FROM ' . $this->table_prefix . 'extensions
|
FROM ' . $this->table_prefix . 'extensions
|
||||||
|
Reference in New Issue
Block a user