From 712bc643b5f26315602f34e9d9822ef83cb6b65a Mon Sep 17 00:00:00 2001 From: marijus Date: Fri, 6 Feb 2015 11:34:23 +0100 Subject: revert to get_rel_link() --- mod/sharedwithme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/sharedwithme.php b/mod/sharedwithme.php index 3c03b7412..d91987027 100644 --- a/mod/sharedwithme.php +++ b/mod/sharedwithme.php @@ -83,7 +83,7 @@ function sharedwithme_content(&$a) { $item['id'] = $rr['id']; $item['objfiletype'] = $object['filetype']; $item['objfiletypeclass'] = getIconFromType($object['filetype']); - $item['objurl'] = rawurldecode($object['link'][0]['href']) . '?f=&zid=' . $channel['xchan_addr']; + $item['objurl'] = rawurldecode(get_rel_link($object['link'],'alternate')) . '?f=&zid=' . $channel['xchan_addr']; $item['objfilename'] = $object['filename']; $item['objfilesize'] = userReadableSize($object['filesize']); $item['objedited'] = $object['edited']; -- cgit v1.2.3