mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Clear empty directories when deleting files or thumbnails
This commit is contained in:
parent
2ef85c2555
commit
3f0cf4f9b7
3 changed files with 14 additions and 18 deletions
|
|
@ -1129,6 +1129,9 @@ class commentController extends comment
|
|||
$output = executeQuery('file.updateFileValid', $args);
|
||||
}
|
||||
|
||||
// Remove the thumbnail file
|
||||
Rhymix\Framework\Storage::deleteEmptyDirectory(RX_BASEDIR . sprintf('files/thumbnails/%s', getNumberingPath($comment_srl, 3)), true);
|
||||
|
||||
// commit
|
||||
$oDB->commit();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue