UUID for deleting pages files
This commit is contained in:
parent
9a2ac1eaf4
commit
1e486574ef
1 changed files with 3 additions and 2 deletions
|
@ -345,8 +345,9 @@ class Pages extends dbJSON {
|
|||
}
|
||||
|
||||
// Delete upload directory
|
||||
if (Filesystem::deleteRecursive(PATH_UPLOADS_PAGES.$key) === false) {
|
||||
Log::set(__METHOD__.LOG_SEP.'An error occurred while trying to delete the directory: '.PATH_UPLOADS_PAGES.$key, LOG_TYPE_ERROR);
|
||||
unlink(PATH_UPLOADS_PAGES.$key);
|
||||
if (Filesystem::deleteRecursive(PATH_UPLOADS_PAGES.$this->db[$key]['uuid']) === false) {
|
||||
Log::set(__METHOD__.LOG_SEP.'An error occurred while trying to delete the directory: '.PATH_UPLOADS_PAGES.$this->db[$key]['uuid'], LOG_TYPE_ERROR);
|
||||
}
|
||||
|
||||
// Remove from database
|
||||
|
|
Loading…
Reference in a new issue