diff options
author | Mario <mario@mariovavti.com> | 2021-10-10 18:16:13 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-10-10 18:16:13 +0000 |
commit | 4c2b188f8b968f2bd11bfe5eea162713007d87c4 (patch) | |
tree | e9308be49d454dcdc839210a98b853fa8e8f795f /Zotlabs/Module/Photos.php | |
parent | 08f65420f47f28cd92813c3cd20e838ab6b4dc12 (diff) | |
download | volse-hubzilla-4c2b188f8b968f2bd11bfe5eea162713007d87c4.tar.gz volse-hubzilla-4c2b188f8b968f2bd11bfe5eea162713007d87c4.tar.bz2 volse-hubzilla-4c2b188f8b968f2bd11bfe5eea162713007d87c4.zip |
if we do not have a display path, we are looking at the root directory
Diffstat (limited to 'Zotlabs/Module/Photos.php')
-rw-r--r-- | Zotlabs/Module/Photos.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Photos.php b/Zotlabs/Module/Photos.php index 57126df5f..45fe3d9e0 100644 --- a/Zotlabs/Module/Photos.php +++ b/Zotlabs/Module/Photos.php @@ -713,13 +713,15 @@ class Photos extends \Zotlabs\Web\Controller { ]); if($x = photos_album_exists($owner_uid, get_observer_hash(), $datum)) { - \App::set_pager_itemspage(30); $album = $x['display_path']; } else { - goaway(z_root() . '/photos/' . \App::$data['channel']['channel_address']); + $album = '/'; + //goaway(z_root() . '/photos/' . \App::$data['channel']['channel_address']); } + \App::set_pager_itemspage(30); + if($_GET['order'] === 'posted') $order = 'ASC'; else |