summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-13 23:28:48 +0000
committerBharat Mediratta <bharat@menalto.com>2009-05-13 23:28:48 +0000
commitd6214a974e0ce0aab0e5bdc83f101ca2cfdc7e98 (patch)
treee5b7b4a56d3e89c1ec91e15835940bbd8532ab1c /core/helpers
parentd3103f6c5dba11a8a82faac6efccf46ca65150a6 (diff)
Use the $filename not the $name to find the path extension.
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/photo.php2
1 files changed, 1 insertions, 1 deletions
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"];