]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Enable HTML::Template's parent_global_vars option.
authorintrigeri <intrigeri@boum.org>
Wed, 22 Dec 2010 18:21:41 +0000 (19:21 +0100)
committerintrigeri <intrigeri@boum.org>
Wed, 22 Dec 2010 18:21:41 +0000 (19:21 +0100)
Else setting parameters that do not appear in the template (such as
title_overridden) fails horribly.

IkiWiki.pm

index 97946bfcf888a185a193cf5d4ef2f2c353cdb058..926d42a497159845ae8ab94c62a054374a61d468 100644 (file)
@@ -1891,6 +1891,7 @@ sub template_depends ($$;@) {
                },
                loop_context_vars => 1,
                die_on_bad_params => 0,
+               parent_global_vars => 1,
                filename => $filename,
                @_,
                ($untrusted ? (no_includes => 1) : ()),