diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-06-08 12:04:45 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-06-08 12:04:45 +0200 |
commit | 4234c9a1946d805259d3fea916844710863acd5d (patch) | |
tree | c0d80fdb36339c91223ee075697145afc2113899 /include/widgets.php | |
parent | 75b97cafb0412ed7d06e0bc499ef7927290f027d (diff) | |
parent | e46e7002a8945f3156b4c4dcfdedb57316d94ba9 (diff) | |
download | volse-hubzilla-4234c9a1946d805259d3fea916844710863acd5d.tar.gz volse-hubzilla-4234c9a1946d805259d3fea916844710863acd5d.tar.bz2 volse-hubzilla-4234c9a1946d805259d3fea916844710863acd5d.zip |
Merge branch 'dev' into sabre32
Diffstat (limited to 'include/widgets.php')
-rw-r--r-- | include/widgets.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/widgets.php b/include/widgets.php index a1b9f1956..312b63729 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -799,8 +799,10 @@ function widget_photo_albums($arr) { if((! $channelx) || (! perm_is_allowed(App::$profile['profile_uid'], get_observer_hash(), 'view_storage'))) return ''; require_once('include/photos.php'); + $sortkey = ((array_key_exists('sortkey',$arr)) ? $arr['sortkey'] : 'album'); + $direction = ((array_key_exists('direction',$arr)) ? $arr['direction'] : 'asc'); - return photos_album_widget($channelx, App::get_observer()); + return photos_album_widget($channelx, App::get_observer(),$sortkey,$direction); } |