diff options
author | Max Kostikov <max@kostikov.co> | 2019-06-19 23:26:54 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-06-19 23:26:54 +0200 |
commit | 8c92b0cd3aaefde7a960fa1811021da247a4e28f (patch) | |
tree | f1fa9434eadc4aafd8691896d092d9a949df6d56 /Zotlabs | |
parent | 2862b69d56d34c11baadab4f73fb3156bdeaf4d9 (diff) | |
parent | dd515da889d642ae68210a8b7e91ac587d3cdee7 (diff) | |
download | volse-hubzilla-8c92b0cd3aaefde7a960fa1811021da247a4e28f.tar.gz volse-hubzilla-8c92b0cd3aaefde7a960fa1811021da247a4e28f.tar.bz2 volse-hubzilla-8c92b0cd3aaefde7a960fa1811021da247a4e28f.zip |
Merge branch 'dev' into 'dev'
Remove cached photo location directory on delete if empty
See merge request hubzilla/core!1678
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Daemon/Cron.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zotlabs/Daemon/Cron.php b/Zotlabs/Daemon/Cron.php index 8b6b42c8a..c99892ffb 100644 --- a/Zotlabs/Daemon/Cron.php +++ b/Zotlabs/Daemon/Cron.php @@ -108,6 +108,7 @@ class Cron { $file = dbunescbin($rr['content']); if(is_file($file)) { @unlink($file); + @rmdir(dirname($file)); logger('info: deleted cached photo file ' . $file, LOGGER_DEBUG); } } |