1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-25 18:13:28 +01:00

[ticket/15342] Track current uploaded files

PHPBB3-15342
This commit is contained in:
Rubén Calvo 2018-02-15 10:09:53 +01:00
parent e9dd717b8b
commit 91026b56b9
2 changed files with 26 additions and 2 deletions

View File

@ -40,4 +40,28 @@ class storage_track extends \phpbb\db\migration\migration
),
);
}
public function update_data()
{
return [
['custom', [[$this, 'track_avatars']]],
['custom', [[$this, 'track_attachments']]],
['custom', [[$this, 'track_backups']]],
];
}
public function track_avatars()
{
}
public function track_attachments()
{
}
public function track_backups()
{
}
}

View File

@ -253,7 +253,7 @@ class storage
}
}
protected function track_file($path, $update = false)
public function track_file($path, $update = false)
{
$sql_ary = array(
'file_path' => $path,
@ -285,7 +285,7 @@ class storage
}
}
protected function untrack_file($path)
public function untrack_file($path)
{
$sql_ary = array(
'file_path' => $path,