summaryrefslogtreecommitdiffstats
path: root/apps/gallery/lib/managers.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gallery/lib/managers.php')
-rw-r--r--apps/gallery/lib/managers.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/gallery/lib/managers.php b/apps/gallery/lib/managers.php
index 17eb741a660..495c51ea9c2 100644
--- a/apps/gallery/lib/managers.php
+++ b/apps/gallery/lib/managers.php
@@ -102,13 +102,12 @@ class ThumbnailsManager {
}
public function delete($path) {
- $thumbnail = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/gallery".$path;
- if (file_exists($thumbnail)) {
- unlink($thumbnail);
+ $thumbnail = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/gallery".$path;
+ if (file_exists($thumbnail)) {
+ unlink($thumbnail);
}
}
private function __construct() {}
}
-?>