summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2012-02-25 10:03:17 +0100
committerBartek Przybylski <bart.p.pl@gmail.com>2012-02-25 10:03:58 +0100
commit3cf81cadd5535b0516d73fe3de8ee91f330b4a6f (patch)
tree300796ccd0ffc0843f89a42e05a335e91b2d3bf5
parent7988541476f00b7569aea0790af5d2d773f93ae8 (diff)
downloadnextcloud-server-3cf81cadd5535b0516d73fe3de8ee91f330b4a6f.tar.gz
nextcloud-server-3cf81cadd5535b0516d73fe3de8ee91f330b4a6f.zip
gallery thumbnail creation fix
-rw-r--r--apps/gallery/lib/photo.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/apps/gallery/lib/photo.php b/apps/gallery/lib/photo.php
index 4eb313bfc33..872ecc9488a 100644
--- a/apps/gallery/lib/photo.php
+++ b/apps/gallery/lib/photo.php
@@ -69,7 +69,6 @@ class OC_Gallery_Photo {
public static function getThumbnail($image_name) {
$save_dir = OC_Config::getValue("datadirectory").'/'. OC_User::getUser() .'/gallery/';
$save_dir .= dirname($image_name). '/';
- $image_name = basename($image_name);
$thumb_file = $save_dir . $image_name;
if (file_exists($thumb_file)) {
$image = new OC_Image($thumb_file);