summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-02-14 18:00:05 +0100
committerFlorian Pritz <bluewind@xssn.at>2010-02-14 18:00:05 +0100
commit170f64270c53e8d783db0afd798ca6e355d68693 (patch)
treeb6bfc8b063f04b7f0911ae7eafc9e88d4c49fdf1 /system
parentad623607be712722ae3a39925e7acde8338513e1 (diff)
remove empty folders
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system')
-rw-r--r--system/application/models/file_mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php
index 3d7aa6eec..46efe6562 100644
--- a/system/application/models/file_mod.php
+++ b/system/application/models/file_mod.php
@@ -100,7 +100,7 @@ class File_mod extends Model {
if($this->unused_file($filedata['hash'])) {
unlink($this->file($filedata['hash']));
- // TODO: remove empty folders
+ @rmdir($this->folder($filedata['hash']));
}
}