diff --git a/mod/network.php b/mod/network.php index 52daa2eefe..46861e3943 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 938697f9cd..5166d5848e 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 3cfe705400..d12f003c2e 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 b4c34f74e2..590af0205d 100644 --- a/view/templates/contact_edit.tpl +++ b/view/templates/contact_edit.tpl @@ -46,7 +46,7 @@ {{* End of contact-edit-status-wrapper *}} diff --git a/view/templates/nets.tpl b/view/templates/nets.tpl index ea28bc665c..c27e8367cc 100644 --- a/view/templates/nets.tpl +++ b/view/templates/nets.tpl @@ -2,7 +2,7 @@

{{$title}}

{{$desc}}
- {{$all}} + {{$all}}
{{* End of contact-edit-status-wrapper *}} diff --git a/view/theme/frio/templates/nets.tpl b/view/theme/frio/templates/nets.tpl index da637e7cf7..4f9bfe22f4 100644 --- a/view/theme/frio/templates/nets.tpl +++ b/view/theme/frio/templates/nets.tpl @@ -3,7 +3,7 @@

{{$title}}

{{$desc}}