]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/inline.pm
* --getctime had bitrotted (well I only ever used it the once so far..),
[git.ikiwiki.info.git] / IkiWiki / Plugin / inline.pm
index a11e5a52bbb916dcef8a30396c6fedb5f8b74d88..8b67bfa61c341e0f3ee4fbb5c409c4a7cc226e5b 100644 (file)
@@ -59,7 +59,7 @@ sub preprocess_inline (@) { #{{{
        foreach my $page (blog_list($params{pages}, $params{show})) {
                next if $page eq $params{page};
                push @pages, $page;
-               $template->param(pagelink => htmllink($params{page}, $page));
+               $template->param(pagelink => htmllink($params{page}, $params{page}, $page));
                $template->param(content => get_inline_content($params{page}, $page))
                        if $params{archive} eq "no";
                $template->param(ctime => scalar(gmtime($pagectime{$page})));
@@ -100,7 +100,7 @@ sub get_inline_content ($$) { #{{{
        my $file=$pagesources{$page};
        my $type=pagetype($file);
        if ($type ne 'unknown') {
-               return htmlize($type, linkify($parentpage, readfile(srcfile($file))));
+               return htmlize($type, linkify($page, $parentpage, readfile(srcfile($file))));
        }
        else {
                return "";