]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/inline.pm
tag
[git.ikiwiki.info.git] / IkiWiki / Plugin / inline.pm
index e0f33ef315e8a1539c3e5c4da1bb4fa03d419d65..5d2ef5681b3d6ab84f16932f8e5efdbc030345a3 100644 (file)
@@ -266,6 +266,9 @@ sub preprocess_inline (@) { #{{{
                my $rootpage;
                if (exists $params{rootpage}) {
                        $rootpage=bestlink($params{page}, $params{rootpage});
+                       if (!length $rootpage) {
+                               $rootpage=$params{rootpage};
+                       }
                }
                else {
                        $rootpage=$params{page};