]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/inline.pm
(no commit message)
[git.ikiwiki.info.git] / IkiWiki / Plugin / inline.pm
index a50c4b7b79dbe2ba9b3ab932a365cf315c2d1d21..8eb033951a365ce2ada82394c94c8e903ae858df 100644 (file)
@@ -211,9 +211,7 @@ sub preprocess_inline (@) {
                        }
                }
 
                        }
                }
 
-               @list = grep { $_ ne '' } 
-                       map { bestlink($params{page}, $_) }
-                       split ' ', $params{pagenames};
+               @list = split ' ', $params{pagenames};
 
                if (yesno($params{reverse})) {
                        @list=reverse(@list);
 
                if (yesno($params{reverse})) {
                        @list=reverse(@list);
@@ -222,6 +220,8 @@ sub preprocess_inline (@) {
                foreach my $p (@list) {
                        add_depends($params{page}, $p, deptype($quick ? "presence" : "content"));
                }
                foreach my $p (@list) {
                        add_depends($params{page}, $p, deptype($quick ? "presence" : "content"));
                }
+
+               @list = grep { exists $pagesources{$_} } @list;
        }
        else {
                my $num=0;
        }
        else {
                my $num=0;