diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 15:54:34 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 15:54:34 +0200 |
commit | 82a61e2e1a0f392759b69f7336213ff70a7bc877 (patch) | |
tree | a78094228b8454feb9212c2b7c3f54f5427fc03c /apps/gallery/lib | |
parent | ff66600bc060dd2713b88b4af88e5a0a291710e0 (diff) | |
download | nextcloud-server-82a61e2e1a0f392759b69f7336213ff70a7bc877.tar.gz nextcloud-server-82a61e2e1a0f392759b69f7336213ff70a7bc877.zip |
port oc_preferences
Diffstat (limited to 'apps/gallery/lib')
-rwxr-xr-x | apps/gallery/lib/album.php | 2 | ||||
-rwxr-xr-x | apps/gallery/lib/hooks_handlers.php | 2 | ||||
-rwxr-xr-x | apps/gallery/lib/photo.php | 2 | ||||
-rwxr-xr-x | apps/gallery/lib/scanner.php | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/apps/gallery/lib/album.php b/apps/gallery/lib/album.php index 8775cd52e11..f58140c4999 100755 --- 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($owner, 'gallery', 'order', 'ASC'); + $order = OCP\Config::getUserValue($owner, 'gallery', 'order', 'ASC'); $sql .= ' ORDER BY album_name ' . $order; $stmt = OC_DB::prepare($sql); diff --git a/apps/gallery/lib/hooks_handlers.php b/apps/gallery/lib/hooks_handlers.php index 525afc4127e..678d3fe7531 100755 --- a/apps/gallery/lib/hooks_handlers.php +++ b/apps/gallery/lib/hooks_handlers.php @@ -59,7 +59,7 @@ class OC_Gallery_Hooks_Handlers { } public static function pathInRoot($path) { - $root = OC_Preferences::getValue(OCP\USER::getUser(), 'gallery', 'root', '/'); + $root = OCP\Config::getUserValue(OCP\USER::getUser(), 'gallery', 'root', '/'); return substr($path, 0, strlen($path)>strlen($root)?strlen($root):strlen($path)) == $root; } diff --git a/apps/gallery/lib/photo.php b/apps/gallery/lib/photo.php index 7885ce2bf56..010eb9ab91b 100755 --- a/apps/gallery/lib/photo.php +++ b/apps/gallery/lib/photo.php @@ -98,6 +98,6 @@ class OC_Gallery_Photo { } public static function getGalleryRoot() { - return OC_Preferences::getValue(OCP\USER::getUser(), 'gallery', 'root', ''); + return OCP\Config::getUserValue(OCP\USER::getUser(), 'gallery', 'root', ''); } } diff --git a/apps/gallery/lib/scanner.php b/apps/gallery/lib/scanner.php index 11c7541a75f..7a137cb3f50 100755 --- a/apps/gallery/lib/scanner.php +++ b/apps/gallery/lib/scanner.php @@ -24,7 +24,7 @@ class OC_Gallery_Scanner { public static function getGalleryRoot() { - return OC_Preferences::getValue(OCP\USER::getUser(), 'gallery', 'root', '/'); + return OCP\Config::getUserValue(OCP\USER::getUser(), 'gallery', 'root', '/'); } public static function getScanningRoot() { return OC_Filesystem::getRoot().self::getGalleryRoot(); |