]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/inline.pm
pagecount: Fix broken optimisation for * pagespec.
[git.ikiwiki.info.git] / IkiWiki / Plugin / inline.pm
index 366357095ee24cee2ac61691538b92196f870e9d..9d5ebc34daaeb6aa942f41b1424ece4ba00c9036 100644 (file)
@@ -184,7 +184,7 @@ sub preprocess_inline (@) {
        }
 
        my @list=pagespec_match_list(
        }
 
        my @list=pagespec_match_list(
-               [ grep { $_ ne $params{page}} keys %pagesources ],
+               [ grep { $_ ne $params{page} } keys %pagesources ],
                $params{pages}, location => $params{page});
 
        if (exists $params{sort} && $params{sort} eq 'title') {
                $params{pages}, location => $params{page});
 
        if (exists $params{sort} && $params{sort} eq 'title') {
@@ -342,7 +342,7 @@ sub preprocess_inline (@) {
                                        my $content=get_inline_content($page, $params{destpage});
                                        $template->param(content => $content);
                                }
                                        my $content=get_inline_content($page, $params{destpage});
                                        $template->param(content => $content);
                                }
-                               $template->param(pageurl => urlto(bestlink($params{page}, $page), $params{destpage}));
+                               $template->param(pageurl => urlto($page, $params{destpage}));
                                $template->param(inlinepage => $page);
                                $template->param(title => pagetitle(basename($page)));
                                $template->param(ctime => displaytime($pagectime{$page}, $params{timeformat}));
                                $template->param(inlinepage => $page);
                                $template->param(title => pagetitle(basename($page)));
                                $template->param(ctime => displaytime($pagectime{$page}, $params{timeformat}));
@@ -354,7 +354,7 @@ sub preprocess_inline (@) {
                                        my $file = $pagesources{$page};
                                        my $type = pagetype($file);
                                        if ($config{discussion}) {
                                        my $file = $pagesources{$page};
                                        my $type = pagetype($file);
                                        if ($config{discussion}) {
-                                               my $discussionlink=gettext("discussion");
+                                               my $discussionlink=lc(gettext("Discussion"));
                                                if ($page !~ /.*\/\Q$discussionlink\E$/ &&
                                                    (length $config{cgiurl} ||
                                                     exists $links{$page."/".$discussionlink})) {
                                                if ($page !~ /.*\/\Q$discussionlink\E$/ &&
                                                    (length $config{cgiurl} ||
                                                     exists $links{$page."/".$discussionlink})) {