X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdirectory.php;h=703c08ce1bec37bfdd1add92c130fd5b812f05e4;hb=e59377d96b09c8d7bc0090ce2cea0e99517c7d9b;hp=4e365767338b66c988d7a8cc71aa91d1bf7905e6;hpb=65a420b22755f774dc2422f7fdf3709e01289945;p=friendica.git diff --git a/mod/directory.php b/mod/directory.php index 4e36576733..703c08ce1b 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -4,16 +4,23 @@ function directory_init(&$a) { } function directory_content(&$a) { + $o = ''; $o .= ''; $search = ((x($_GET,'search')) ? notags(trim($_GET['search'])) : ''); - $tpl .= file_get_contents('view/directory_header.tpl'); + $tpl = load_view_file('view/directory_header.tpl'); - + $globaldir = ''; + $gdirpath = dirname(get_config('system','directory_submit_url')); + if(strlen($gdirpath)) { + $globaldir = '