From d6214a974e0ce0aab0e5bdc83f101ca2cfdc7e98 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 13 May 2009 23:28:48 +0000 Subject: Use the $filename not the $name to find the path extension. --- core/helpers/photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/helpers') diff --git a/core/helpers/photo.php b/core/helpers/photo.php index bc72c3d9..1d7bef11 100644 --- a/core/helpers/photo.php +++ b/core/helpers/photo.php @@ -46,7 +46,7 @@ class photo_Core { $image_info = getimagesize($filename); // Force an extension onto the name - $pi = pathinfo($name); + $pi = pathinfo($filename); if (empty($pi["extension"])) { $pi["extension"] = image_type_to_extension($image_info[2], false); $name .= "." . $pi["extension"]; -- cgit v1.2.3