Browse Source

Fixed photo download

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

+ 1 - 1
php/modules/Photo.php

@@ -598,7 +598,7 @@ class Photo extends Module {
 		if ($photo->title=='') $photo->title = 'Untitled';
 
 		# Escape title
-		$zipTitle = str_replace($badChars, '', $zipTitle);
+		$photo->title = str_replace($badChars, '', $photo->title);
 
 		# Set headers
 		header("Content-Type: application/octet-stream");