Fixed import of filename

This commit is contained in:
Tobias Reich 2014-06-14 23:06:11 +02:00
parent 65094ccad5
commit a3828e72ae

View File

@ -110,7 +110,7 @@ class Photo extends Module {
$info = $this->getInfo($path);
# Use title of file if IPTC title missing
if ($info['title']==='') $info['title'] = mysqli_real_escape_string($this->database, substr(basename($file['name'], ".$extension"), 0, 30));
if ($info['title']==='') $info['title'] = mysqli_real_escape_string($this->database, substr(basename($file['name'], $extension), 0, 30));
# Use description parameter if set
if ($description==='') $description = $info['description'];