]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix typo
authorGeorg Ehrke <developer@georgehrke.com>
Wed, 10 Jul 2013 16:04:13 +0000 (18:04 +0200)
committerGeorg Ehrke <developer@georgehrke.com>
Wed, 10 Jul 2013 16:04:13 +0000 (18:04 +0200)
lib/preview.php

index 0a8ab438367c810e615405993986c63ccb0f5740..f018fa38850820ebcfbc9a5a123a858bba0aae70 100755 (executable)
@@ -243,9 +243,9 @@ class Preview {
                $fileinfo = $this->fileview->getFileInfo($file);
                $fileid = $fileinfo['fileid'];
 
-               $previepath = $this->getThumbnailsFolder() . '/' . $fileid . '/' . $this->getMaxX() . '-' . $this->getMaxY() . '.png';
-               $this->userview->unlink($previepath);
-               return $this->userview->file_exists($previepath);
+               $previewpath = $this->getThumbnailsFolder() . '/' . $fileid . '/' . $this->getMaxX() . '-' . $this->getMaxY() . '.png';
+               $this->userview->unlink($previewpath);
+               return $this->userview->file_exists($previewpath);
        }
 
        /**
@@ -261,7 +261,7 @@ class Preview {
                $previewpath = $this->getThumbnailsFolder() . '/' . $fileid . '/';
                $this->userview->deleteAll($previewpath);
                $this->userview->rmdir($previewpath);
-               return $this->userview->is_dir($previepath);
+               return $this->userview->is_dir($previewpath);
        }
 
        /**