mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15342] Track current uploaded files
PHPBB3-15342
This commit is contained in:
parent
e9dd717b8b
commit
91026b56b9
2 changed files with 26 additions and 2 deletions
|
@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue