aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-06-24 12:33:37 +0200
committerMario Vavti <mario@mariovavti.com>2015-06-24 12:33:37 +0200
commit201ba411ba9828bd29dcebf161471e6e8dfa3f82 (patch)
tree3a9c4dcadf8755a00ff8e2e1b207ed8cb3189a24
parent30ba2803e7a4f9266fd72d19c54e1cb46190702a (diff)
downloadvolse-hubzilla-201ba411ba9828bd29dcebf161471e6e8dfa3f82.tar.gz
volse-hubzilla-201ba411ba9828bd29dcebf161471e6e8dfa3f82.tar.bz2
volse-hubzilla-201ba411ba9828bd29dcebf161471e6e8dfa3f82.zip
Reflect in directory title if we watch the local or the global directory
-rw-r--r--mod/directory.php5
1 files 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 .= "<script> var page_query = '" . $_GET['q'] . "'; var extra_args = '" . extra_query_args() . "' ; divmore_height = " . intval($maxheight) . "; </script>";
$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'))
-
));