1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/15342] Fix test

PHPBB3-15342
This commit is contained in:
Rubén Calvo
2018-06-19 18:31:21 +02:00
parent 22b2e95531
commit f9c1901317
9 changed files with 21 additions and 24 deletions

View File

@@ -30,7 +30,7 @@ class storage_track extends \phpbb\db\migration\migration
{
return array(
'add_tables' => array(
STORAGE_TABLE => array(
$this->table_prefix . 'storage' => array(
'COLUMNS' => array(
'file_id' => array('UINT', null, 'auto_increment'),
'file_path' => array('VCHAR', ''),
@@ -93,7 +93,7 @@ class storage_track extends \phpbb\db\migration\migration
{
$storage->track_file($row['physical_filename']);
if($row['thumbnail'] == 1)
if ($row['thumbnail'] == 1)
{
$storage->track_file('thumb_' . $row['physical_filename']);
}

View File

@@ -55,10 +55,11 @@ class storage
/**
* Constructor
*
* @param \phpbb\cache\driver\driver_interface $db
* @param \phpbb\db\driver\driver_interface $db
* @param \phpbb\cache\driver\driver_interface $cache
* @param \phpbb\storage\adapter_factory $factory
* @param string $storage_name
* @param string $storage_table
*/
public function __construct(db $db, cache $cache, adapter_factory $factory, $storage_name, $storage_table)
{