diff index.php @ 20:caf498a0c602

Hide [root] for aliased directory.
author edogawaconan <me@myconan.net>
date Wed, 22 Oct 2014 11:58:24 +0900
parents c5b8d2592585
children fb351f473fd5
line wrap: on
line diff
--- 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; }