summaryrefslogtreecommitdiffstats
path: root/apps/gallery/lib/album.php
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2012-03-24 18:35:16 +0100
committerBartek Przybylski <bart.p.pl@gmail.com>2012-03-24 18:35:42 +0100
commitcbdcb68c2b2bfed5d7ad3a1b0bf8b7f20210b258 (patch)
tree3e324ea6a3f122d9a1c32087c072d68a2d00cc2c /apps/gallery/lib/album.php
parente0cbefc7275fa622f15dc1e57be67fd283f28056 (diff)
downloadnextcloud-server-cbdcb68c2b2bfed5d7ad3a1b0bf8b7f20210b258.tar.gz
nextcloud-server-cbdcb68c2b2bfed5d7ad3a1b0bf8b7f20210b258.zip
gallery sharing, experimental version
Diffstat (limited to 'apps/gallery/lib/album.php')
-rw-r--r--apps/gallery/lib/album.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gallery/lib/album.php b/apps/gallery/lib/album.php
index 070afdd6cd6..ef361a37913 100644
--- a/apps/gallery/lib/album.php
+++ b/apps/gallery/lib/album.php
@@ -79,7 +79,7 @@ class OC_Gallery_Album {
$sql .= ' AND parent_path = ?';
$args[] = $parent;
}
- $order = OC_Preferences::getValue(OC_User::getUser(), 'gallery', 'order', 'ASC');
+ $order = OC_Preferences::getValue($owner, 'gallery', 'order', 'ASC');
$sql .= ' ORDER BY album_name ' . $order;
$stmt = OC_DB::prepare($sql);