From fedfa7da4fc422ae6c5bb4f0dcccdf9275a02afb Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 31 Oct 2017 21:49:00 -0400 Subject: [PATCH] Missing variable change --- mod/directory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/directory.php b/mod/directory.php index 6c5259e2..a1081b35 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -37,7 +37,7 @@ function directory_content(App $a) $o = replace_macros($tpl, array( '$header' => t('Global Directory'), '$submit' => t('Find'), - '$forum' => $a->get_baseurl() . (($forums) ? '' : '/directory/forum'), + '$forum' => $a->get_baseurl() . (($filter == 'forums') ? '' : '/directory/forums'), '$toggle' => (($filter == 'forums') ? t('Show People') : t('Show Community Forums')), '$alpha' => (($alpha) ? t('Updated order') : t('Alphabetic order')), '$alink' => (($alpha) ? str_replace('&alpha=1', '', $a->query_string) : $a->query_string . "&alpha=1"),