From 3b1d89252a8a9d4e5ff74ceec44ab2b6dc844dc6 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 17 May 2020 15:01:27 +0000 Subject: [PATCH] Issue 8582: "cid" in "network" is now "contactid" Fixes #8582 --- include/conversation.php | 22 +++++++++++----------- mod/network.php | 18 +++++++++--------- src/Content/ForumManager.php | 2 +- view/theme/vier/theme.php | 2 +- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 5b7ccbd8a1..0eb94181f0 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -376,17 +376,17 @@ function conversation(App $a, array $items, $mode, $update, $preview = false, $o . "\r\n"; } diff --git a/mod/network.php b/mod/network.php index 1506c70737..1ef7c67f4c 100644 --- a/mod/network.php +++ b/mod/network.php @@ -58,8 +58,8 @@ function network_init(App $a) $group_id = (($a->argc > 1 && is_numeric($a->argv[1])) ? intval($a->argv[1]) : 0); $cid = 0; - if (!empty($_GET['cid'])) { - $cid = $_GET['cid']; + if (!empty($_GET['contactid'])) { + $cid = $_GET['contactid']; $_GET['nets'] = ''; $group_id = 0; } @@ -466,12 +466,12 @@ function networkThreadedView(App $a, $update, $parent) $o = ''; - $cid = intval($_GET['cid'] ?? 0); - $star = intval($_GET['star'] ?? 0); - $bmark = intval($_GET['bmark'] ?? 0); - $conv = intval($_GET['conv'] ?? 0); + $cid = intval($_GET['contactid'] ?? 0); + $star = intval($_GET['star'] ?? 0); + $bmark = intval($_GET['bmark'] ?? 0); + $conv = intval($_GET['conv'] ?? 0); $order = Strings::escapeTags(($_GET['order'] ?? '') ?: 'activity'); - $nets = $_GET['nets'] ?? ''; + $nets = $_GET['nets'] ?? ''; $allowedCids = []; if ($cid) { @@ -891,8 +891,8 @@ function network_tabs(App $a) $cmd = DI::args()->getCommand(); $def_param = []; - if (!empty($_GET['cid'])) { - $def_param['cid'] = $_GET['cid']; + if (!empty($_GET['contactid'])) { + $def_param['contactid'] = $_GET['contactid']; } // tabs diff --git a/src/Content/ForumManager.php b/src/Content/ForumManager.php index 7d3cb89a71..9441e9dbb0 100644 --- a/src/Content/ForumManager.php +++ b/src/Content/ForumManager.php @@ -126,7 +126,7 @@ class ForumManager $selected = (($cid == $contact['id']) ? ' forum-selected' : ''); $entry = [ - 'url' => 'network?cid=' . $contact['id'], + 'url' => 'network?contactid=' . $contact['id'], 'external_url' => Contact::magicLink($contact['url']), 'name' => $contact['name'], 'cid' => $contact['id'], diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index cc3a668e6a..cec5e5ba63 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -202,7 +202,7 @@ function vier_community_info() $selected = (($cid == $contact['id']) ? ' forum-selected' : ''); $entry = [ - 'url' => 'network?cid=' . $contact['id'], + 'url' => 'network?contactid=' . $contact['id'], 'external_url' => Contact::magicLink($contact['url']), 'name' => $contact['name'], 'cid' => $contact['id'], -- 2.39.5