diff --git a/lib/imagefile.php b/lib/imagefile.php index 8a0f652327..0fe1c654b2 100644 --- a/lib/imagefile.php +++ b/lib/imagefile.php @@ -47,7 +47,7 @@ class ImageFile { var $id; var $filepath; - var $barename; + var $filename; var $type; var $height; var $width; @@ -58,6 +58,7 @@ class ImageFile { $this->id = $id; $this->filepath = $filepath; + $this->filename = basename($filepath); $info = @getimagesize($this->filepath);