aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-28 19:44:47 -0800
committerFriendika <info@friendika.com>2011-02-28 19:44:47 -0800
commit80ed4242ee71031f73aa4ef32f17edbf6e989f51 (patch)
treece8c3dd29d1385de3180d43ba35aa2edff2af658 /include/nav.php
parentf089b1610e148db0f3952d9fce44974dbecfbc5c (diff)
downloadvolse-hubzilla-80ed4242ee71031f73aa4ef32f17edbf6e989f51.tar.gz
volse-hubzilla-80ed4242ee71031f73aa4ef32f17edbf6e989f51.tar.bz2
volse-hubzilla-80ed4242ee71031f73aa4ef32f17edbf6e989f51.zip
singleuser site mode plus fix search template layout
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/nav.php b/include/nav.php
index 430841722..bfbc10f5a 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -63,8 +63,16 @@ function nav(&$a) {
}
$a->page['nav'] .= '<a id="nav-search-link" class="nav-link" href="search">' . t('Search') . "</a>\r\n";
- $a->page['nav'] .= '<a id="nav-directory-link" class="nav-link" href="directory">' . t('Directory') . "</a>\r\n";
+ $gdirpath = 'directory';
+
+ if(strlen(get_config('system','singleuser'))) {
+ $gdir = dirname(get_config('system','directory_submit_url'));
+ if(strlen($gdir))
+ $gdirpath = $gdir;
+ }
+
+ $a->page['nav'] .= '<a id="nav-directory-link" class="nav-link" href="' . $gdirpath . '">' . t('Directory') . "</a>\r\n";
/**
*