]> sipb.mit.edu Git - ikiwiki.git/commitdiff
ugly fix for parentlink back to top of wiki
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 14 Mar 2006 04:54:50 +0000 (04:54 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 14 Mar 2006 04:54:50 +0000 (04:54 +0000)
ikiwiki

diff --git a/ikiwiki b/ikiwiki
index add62773966dbe048ecb6ce78b164bb732ff43a8..f95ea0f09c45a2f96c158ab87c4efb65519a00fe 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -314,6 +314,7 @@ sub parentlinks ($) { #{{{
                }
                $path.="../";
        }
+       $path=~s!../!!;
        unshift @ret, { url => $path , page => $config{wikiname} };
        return @ret;
 } #}}}