Commit 165c13f1 authored by Nigel McNie's avatar Nigel McNie

(#3125) Fix comment for delete_image()

Point out that it doesn't actually delete resized images.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 3a74d2de
......@@ -603,11 +603,14 @@ function image_get_new_dimensions($oldx, $oldy, $size) {
}
/**
* Deletes an image, including all resized versions of it, from dataroot.
* Deletes an image, excluding all resized versions of it, from dataroot.
*
* This function does not delete anything from anywhere else - it is your
* responsibility to delete any database records.
*
* This function also does not try to delete all resized versions of this
* image, as it would take a lot of effort to find them all.
*
* @param string $path The path in dataroot of the base directory where the
* image resides.
* @param int $id The id of the image to delete.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment