Working on adding a "Replace Image" feature.

This commit is contained in:
green-ponies (jgen)
2011-08-24 20:53:53 -04:00
parent 684193848a
commit f3b6fde7a5
5 changed files with 282 additions and 40 deletions

View File

@@ -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
*