From 201ba411ba9828bd29dcebf161471e6e8dfa3f82 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 24 Jun 2015 12:33:37 +0200 Subject: Reflect in directory title if we watch the local or the global directory --- mod/directory.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mod/directory.php b/mod/directory.php index 67074d8cd..fa328462c 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -365,6 +365,8 @@ function directory_content(&$a) { else { $maxheight = 94; + $dirtitle = (($globaldir) ? t('Global Directory') : t('Local Directory')); + $o .= ""; $o .= replace_macros($tpl, array( '$search' => $search, @@ -372,10 +374,9 @@ function directory_content(&$a) { '$finddsc' => t('Finding:'), '$safetxt' => htmlspecialchars($search,ENT_QUOTES,'UTF-8'), '$entries' => $entries, - '$dirlbl' => $suggest ? t('Channel Suggestions') : t('Directory'), + '$dirlbl' => $suggest ? t('Channel Suggestions') : $dirtitle, '$submit' => t('Find'), '$next' => alt_pager($a,$j['records'], t('next page'), t('previous page')) - )); -- cgit v1.2.3