Merge branch 'dev' into 'dev'
Remove cached photo location directory on delete if empty See merge request hubzilla/core!1678
This commit is contained in:
commit
8c92b0cd3a
@ -108,6 +108,7 @@ class Cron {
|
|||||||
$file = dbunescbin($rr['content']);
|
$file = dbunescbin($rr['content']);
|
||||||
if(is_file($file)) {
|
if(is_file($file)) {
|
||||||
@unlink($file);
|
@unlink($file);
|
||||||
|
@rmdir(dirname($file));
|
||||||
logger('info: deleted cached photo file ' . $file, LOGGER_DEBUG);
|
logger('info: deleted cached photo file ' . $file, LOGGER_DEBUG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user