]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/template.pm
web commit by intrigeri: bug submission
[git.ikiwiki.info.git] / IkiWiki / Plugin / template.pm
index a6e34fcc9935546fca9cf0bbf136abee3887af42..aa1f57c0703ebcea645bb8818ef779ffaa520d1c 100644 (file)
@@ -45,6 +45,8 @@ sub preprocess (@) { #{{{
                return "[[template ".gettext("failed to process:")." $@]]";
        }
 
+       $params{basename}=IkiWiki::basename($params{page});
+
        foreach my $param (keys %params) {
                if ($template->query(name => $param)) {
                        $template->param($param =>