]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/template.pm
oops, fix for no_chdir mode
[git.ikiwiki.info.git] / IkiWiki / Plugin / template.pm
index 36282055a5274987747026b284609e45f793208c..98a13b5fa55871b4d54d7f8fe1ee9599ff16e2d9 100644 (file)
@@ -42,7 +42,7 @@ sub preprocess (@) {
                $template_file=srcfile($pagesources{$template_page});
        }
        else {
                $template_file=srcfile($pagesources{$template_page});
        }
        else {
-               $template_file=template_file("$params{id}.tmpl")
+               $template_file=IkiWiki::template_file("$params{id}.tmpl")
        }
        return sprintf(gettext("template %s not found"),
                htmllink($params{page}, $params{destpage}, "/".$template_page))
        }
        return sprintf(gettext("template %s not found"),
                htmllink($params{page}, $params{destpage}, "/".$template_page))