# HG changeset patch # User edogawaconan # Date 1413946704 -32400 # Node ID caf498a0c602b0b966ea638d60f55bb23854cf5e # Parent c5b8d2592585f4fb7e9f06a1b51a6be4ae648cc5 Hide [root] for aliased directory. diff -r c5b8d2592585 -r caf498a0c602 index.php --- a/index.php Wed Oct 22 11:55:10 2014 +0900 +++ b/index.php Wed Oct 22 11:58:24 2014 +0900 @@ -70,7 +70,8 @@ array_unshift($path_array, trim($prefix, "/")); $tree_path = "/"; - $tree_link = link_to($tree_path, "[root]") . "/"; + if ($prefix === "") { $tree_link = link_to($tree_path, "[root]"); } + $tree_link .= "/"; foreach ($path_array as $p) { if ($p === "") { continue; }