diff --git a/mod/network.php b/mod/network.php index 52daa2eef..46861e394 100644 --- a/mod/network.php +++ b/mod/network.php @@ -65,7 +65,7 @@ function network_init(App $a) $cid = 0; if (!empty($_GET['cid'])) { $cid = $_GET['cid']; - $_GET['nets'] = 'all'; + $_GET['nets'] = ''; $group_id = 0; } @@ -86,7 +86,7 @@ function network_init(App $a) // fetch last used network view and redirect if needed if (!$is_a_date_query) { - $sel_nets = defaults($_GET, 'nets', false); + $sel_nets = defaults($_GET, 'nets', ''); $sel_tabs = network_query_get_sel_tab($a); $sel_groups = network_query_get_sel_group($a); $last_sel_tabs = PConfig::get(local_user(), 'network.view', 'tab.selected'); @@ -137,7 +137,7 @@ function network_init(App $a) } } - if ($sel_nets !== false) { + if ($sel_nets) { $net_args['nets'] = $sel_nets; } @@ -151,11 +151,6 @@ function network_init(App $a) } } - // If nets is set to all, unset it - if (!empty($_GET['nets']) && $_GET['nets'] === 'all') { - unset($_GET['nets']); - } - if (empty($a->page['aside'])) { $a->page['aside'] = ''; } diff --git a/src/Content/Nav.php b/src/Content/Nav.php index 938697f9c..5166d5848 100644 --- a/src/Content/Nav.php +++ b/src/Content/Nav.php @@ -234,7 +234,7 @@ class Nav // The following nav links are only show to logged in users if (local_user()) { $nav['network'] = ['network', L10n::t('Network'), '', L10n::t('Conversations from your friends')]; - $nav['net_reset'] = ['network/0?f=&order=comment&nets=all', L10n::t('Network Reset'), '', L10n::t('Load Network page with no filters')]; + $nav['net_reset'] = ['network/?f=', L10n::t('Network Reset'), '', L10n::t('Load Network page with no filters')]; $nav['home'] = ['profile/' . $a->user['nickname'], L10n::t('Home'), '', L10n::t('Your posts and conversations')]; diff --git a/src/Module/Contact.php b/src/Module/Contact.php index 3cfe70540..d12f003c2 100644 --- a/src/Module/Contact.php +++ b/src/Module/Contact.php @@ -40,9 +40,6 @@ class Contact extends BaseModule } $nets = defaults($_GET, 'nets', ''); - if ($nets == 'all') { - $nets = ''; - } if (empty($a->page['aside'])) { $a->page['aside'] = ''; diff --git a/view/templates/contact_edit.tpl b/view/templates/contact_edit.tpl index b4c34f74e..590af0205 100644 --- a/view/templates/contact_edit.tpl +++ b/view/templates/contact_edit.tpl @@ -46,7 +46,7 @@