diff --git a/inc/html.php b/inc/html.php index 913e28a7d0730a135835d5f573d5e8c81fe5e76f..c3cc66aa9d5fc3aad69251a17b2f38dc52e61d86 100644 --- a/inc/html.php +++ b/inc/html.php @@ -896,10 +896,9 @@ function html_index($ns){ global $conf; global $ID; $ns = cleanID($ns); - #fixme use appropriate function if(empty($ns)){ - $ns = dirname(str_replace(':','/',$ID)); - if($ns == '.') $ns =''; + $ns = getNS($ID); + if($ns === false) $ns =''; } $ns = utf8_encodeFN(str_replace(':','/',$ns));