Merge pull request #33 from MrPetovan/bug/fix-directory-filters

Missing variable change
This commit is contained in:
Tobias Diekershoff 2017-11-01 07:19:42 +01:00 committed by GitHub
commit 2db783721e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ function directory_content(App $a)
$o = replace_macros($tpl, array( $o = replace_macros($tpl, array(
'$header' => t('Global Directory'), '$header' => t('Global Directory'),
'$submit' => t('Find'), '$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')), '$toggle' => (($filter == 'forums') ? t('Show People') : t('Show Community Forums')),
'$alpha' => (($alpha) ? t('Updated order') : t('Alphabetic order')), '$alpha' => (($alpha) ? t('Updated order') : t('Alphabetic order')),
'$alink' => (($alpha) ? str_replace('&alpha=1', '', $a->query_string) : $a->query_string . "&alpha=1"), '$alink' => (($alpha) ? str_replace('&alpha=1', '', $a->query_string) : $a->query_string . "&alpha=1"),