forked from Cavemanon/cavepaintings
Working on adding a "Replace Image" feature.
This commit is contained in:
@@ -457,6 +457,16 @@ class Image {
|
||||
unlink($this->get_thumb_filename());
|
||||
}
|
||||
|
||||
/**
|
||||
* This function removes an image (and thumbnail) from the DISK ONLY.
|
||||
* It DOES NOT remove anything from the database.
|
||||
*/
|
||||
public function remove_image_only() {
|
||||
log_info("core-image", "Removed Image File ({$this->hash})");
|
||||
unlink($this->get_image_filename());
|
||||
unlink($this->get_thumb_filename());
|
||||
}
|
||||
|
||||
/**
|
||||
* Someone please explain this
|
||||
*
|
||||
|
Reference in New Issue
Block a user