diff --git a/src/Module/Conversation/Community.php b/src/Module/Conversation/Community.php index a23f603508..a79a33c44c 100644 --- a/src/Module/Conversation/Community.php +++ b/src/Module/Conversation/Community.php @@ -114,18 +114,14 @@ class Community extends BaseModule $o .= $pager->renderMinimal(count($items)); DI::page()['aside'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('widget/community_accounts.tpl'), [ - '$content' => self::$content, - '$title' => DI::l10n()->t('Accounts'), - '$all' => DI::l10n()->t('All Accounts'), - '$all_selected' => ($parameters['accounttype'] == '') ? 'selected' : '', - '$person' => DI::l10n()->t('Personal Accounts'), - '$person_selected' => ($parameters['accounttype'] == 'person') ? 'selected' : '', - '$organisation' => DI::l10n()->t('Organisation Accounts'), - '$organisation_selected' => ($parameters['accounttype'] == 'organisation') ? 'selected' : '', - '$news' => DI::l10n()->t('News Accounts'), - '$news_selected' => ($parameters['accounttype'] == 'news') ? 'selected' : '', - '$community' => DI::l10n()->t('Communities'), - '$community_selected' => ($parameters['accounttype'] == 'community') ? 'selected' : '', + '$title' => DI::l10n()->t('Accounts'), + '$content' => self::$content, + '$accounttype' => $parameters['accounttype'], + '$all' => DI::l10n()->t('All Accounts'), + '$person' => DI::l10n()->t('Personal Accounts'), + '$organisation' => DI::l10n()->t('Organisation Accounts'), + '$news' => DI::l10n()->t('News Accounts'), + '$community' => DI::l10n()->t('Communities'), ]); if (Feature::isEnabled(local_user(), 'trending_tags')) { diff --git a/view/templates/widget/community_accounts.tpl b/view/templates/widget/community_accounts.tpl index adc036106d..884cbe4e1f 100644 --- a/view/templates/widget/community_accounts.tpl +++ b/view/templates/widget/community_accounts.tpl @@ -2,10 +2,10 @@