barename wasn't used, let's rename it filename and use it

This commit is contained in:
Mikael Nordfeldth 2015-01-25 02:27:02 +01:00
parent 4b65275e41
commit a9135080c3

View File

@ -47,7 +47,7 @@ class ImageFile
{ {
var $id; var $id;
var $filepath; var $filepath;
var $barename; var $filename;
var $type; var $type;
var $height; var $height;
var $width; var $width;
@ -58,6 +58,7 @@ class ImageFile
{ {
$this->id = $id; $this->id = $id;
$this->filepath = $filepath; $this->filepath = $filepath;
$this->filename = basename($filepath);
$info = @getimagesize($this->filepath); $info = @getimagesize($this->filepath);