summaryrefslogtreecommitdiffstats
path: root/apps/gallery/lib/photo.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gallery/lib/photo.php')
-rwxr-xr-x[-rw-r--r--]apps/gallery/lib/photo.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gallery/lib/photo.php b/apps/gallery/lib/photo.php
index 5098e1a2ed2..455ac5036d9 100644..100755
--- a/apps/gallery/lib/photo.php
+++ b/apps/gallery/lib/photo.php
@@ -67,7 +67,7 @@ class OC_Gallery_Photo {
}
public static function getThumbnail($image_name, $owner = null) {
- if (!$owner) $owner = OC_User::getUser();
+ if (!$owner) $owner = OCP\USER::getUser();
$save_dir = OC_Config::getValue("datadirectory").'/'. $owner .'/gallery/';
$save_dir .= dirname($image_name). '/';
$image_path = $image_name;
@@ -98,6 +98,6 @@ class OC_Gallery_Photo {
}
public static function getGalleryRoot() {
- return OC_Preferences::getValue(OC_User::getUser(), 'gallery', 'root', '');
+ return OC_Preferences::getValue(OCP\USER::getUser(), 'gallery', 'root', '');
}
}