UUID for deleting pages files

This commit is contained in:
Emanuele 2022-03-02 22:23:07 +01:00 committed by GitHub
parent 9a2ac1eaf4
commit 1e486574ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -345,8 +345,9 @@ class Pages extends dbJSON {
} }
// Delete upload directory // Delete upload directory
if (Filesystem::deleteRecursive(PATH_UPLOADS_PAGES.$key) === false) { unlink(PATH_UPLOADS_PAGES.$key);
Log::set(__METHOD__.LOG_SEP.'An error occurred while trying to delete the directory: '.PATH_UPLOADS_PAGES.$key, LOG_TYPE_ERROR); 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 // Remove from database