From 80ed4242ee71031f73aa4ef32f17edbf6e989f51 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 28 Feb 2011 19:44:47 -0800 Subject: singleuser site mode plus fix search template layout --- include/nav.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include') 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'] .= '' . t('Search') . "\r\n"; - $a->page['nav'] .= '' . t('Directory') . "\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'] .= '' . t('Directory') . "\r\n"; /** * -- cgit v1.2.3