Browse Source

Fixed import of filename

Tobias Reich 10 years ago
parent
commit
a3828e72ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      php/modules/Photo.php

+ 1 - 1
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'];