]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/parentlinks.pm
parentlinks: fixed links when po plugin is enabled
[ikiwiki.git] / IkiWiki / Plugin / parentlinks.pm
index 4525145d6968d9a55e5dd6c2cc2bef360f188ae9..9095dabdaf176726b6a514e9edb605c8d06eb4e3 100644 (file)
@@ -36,7 +36,7 @@ sub parentlinks ($) { #{{{
                $depth=$i;
                $height=($pagedepth - $depth);
                push @ret, {
-                       url => urlto($path, $page),
+                       url => urlto(bestlink($page, $path), $page),
                        page => $title,
                        depth => $depth,
                        height => $height,
@@ -44,7 +44,7 @@ sub parentlinks ($) { #{{{
                        "height_$height" => 1,
                };
                $path.="/".$dir;
-               $title=IkiWiki::pagetitle($dir);
+               $title=pagetitle($dir);
                $i++;
        }
        return @ret;