Clear empty directories when deleting files or thumbnails

This commit is contained in:
Kijin Sung 2017-01-26 18:09:56 +09:00
parent 2ef85c2555
commit 3f0cf4f9b7
3 changed files with 14 additions and 18 deletions

View file

@ -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();