mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-10 03:36:31 +02:00
[ticket/15342] Track current uploaded files
PHPBB3-15342
This commit is contained in:
@ -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(
|
$sql_ary = array(
|
||||||
'file_path' => $path,
|
'file_path' => $path,
|
||||||
@ -285,7 +285,7 @@ class storage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function untrack_file($path)
|
public function untrack_file($path)
|
||||||
{
|
{
|
||||||
$sql_ary = array(
|
$sql_ary = array(
|
||||||
'file_path' => $path,
|
'file_path' => $path,
|
||||||
|
Reference in New Issue
Block a user