aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-07 16:23:14 -0700
committerredmatrix <git@macgirvin.com>2016-06-07 16:23:14 -0700
commita50e555515f9635610c28a5756875ae8629f4eb9 (patch)
treed8a51e54777f84df682194aaa4e54e31a0c946ec /include/widgets.php
parent037cd74e8e02f048892208bedef0d16faef16af4 (diff)
downloadvolse-hubzilla-a50e555515f9635610c28a5756875ae8629f4eb9.tar.gz
volse-hubzilla-a50e555515f9635610c28a5756875ae8629f4eb9.tar.bz2
volse-hubzilla-a50e555515f9635610c28a5756875ae8629f4eb9.zip
'recent photos' query was buggered, also fix issue #163 by adding configurable sort order to the album widget - default is album name ascending
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php4
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);
}