summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-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"];