From a3828e72ae65353ece5607a1167a5bfb5493e180 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 14 Jun 2014 23:06:11 +0200 Subject: [PATCH] Fixed import of filename --- php/modules/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/modules/Photo.php b/php/modules/Photo.php index e095940..b5f6da2 100755 --- a/php/modules/Photo.php +++ b/php/modules/Photo.php @@ -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'];