From 696359daba11c51d8f733dfa173e48b5e1de69ef Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 28 Jul 2019 19:57:17 -0700 Subject: fix urls on imported item taxonomy --- include/text.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/text.php b/include/text.php index a2dfda952..a49ff5a29 100644 --- a/include/text.php +++ b/include/text.php @@ -3105,6 +3105,15 @@ function item_url_replace($channel,&$item,$old,$new,$oldnick = '') { if($oldnick) $item['llink'] = str_replace('/' . $oldnick . '/' ,'/' . $channel['channel_address'] . '/' ,$item['llink']); + if($item['term']) { + for($x = 0; $x < count($item['term']); $x ++) { + $item['term'][$x]['url'] = str_replace($old,$new,$item['term'][$x]['url']); + if ($oldnick) { + $item['term'][$x]['url'] = str_replace('/' . $oldnick . '/' ,'/' . $channel['channel_address'] . '/' ,$item['term'][$x]['url']); + } + } + } + } -- cgit v1.2.3 From feea137dbfb807278a3b922396332b867f123049 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 28 Jul 2019 23:46:38 -0700 Subject: hz core issue #1386 - function name must be a string --- Zotlabs/Module/Group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zotlabs/Module/Group.php b/Zotlabs/Module/Group.php index 12edf8428..f836978ee 100644 --- a/Zotlabs/Module/Group.php +++ b/Zotlabs/Module/Group.php @@ -177,7 +177,7 @@ class Group extends Controller { if($r) $result = group_rmv(local_channel(),$r[0]['gname']); if($result) { - $hookinfo = [ 'pgrp_extras' => '', 'group'=>$argv(2) ]; + $hookinfo = [ 'pgrp_extras' => '', 'group' => argv(2) ]; call_hooks ('privacygroup_extras_drop',$hookinfo); info( t('Privacy group removed.') . EOL); } -- cgit v1.2.3