File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -138,21 +138,29 @@ sub new {
138138
139139 Template::Filters-> use_html_entities();
140140
141+ # _ names included for legacy reasons, they will go away
141142 my $self = {
143+ cachedir => $args {cachedir },
144+ _cachedir => $args {cachedir },
145+ config => $config ,
142146 _config => $config ,
147+ info => $info ,
143148 _info => $info ,
149+ logger => $args {logger },
144150 _logger => $args {logger },
145- _cachedir => $args {cachedir },
146151 %args ,
147152 };
148153
149154 if (my $lingua = $args {' lingua' }) {
155+ $self -> {' lingua' } = $lingua ;
150156 $self -> {' _lingua' } = $lingua ;
151157 }
152158 if (my $key = $info -> param(' key' )) {
159+ $self -> {' key' } = $key ;
153160 $self -> {' _key' } = $key ;
154161 }
155162 if (my $page = $info -> param(' page' )) {
163+ $self -> {' page' } = $page ;
156164 $self -> {' _page' } = $page ;
157165 }
158166
@@ -439,6 +447,8 @@ sub html {
439447 ABSOLUTE => 1,
440448 });
441449
450+ $self -> _debug({ message => __PACKAGE__ . ' : ' . __LINE__ . ' : Passing these to the template: ' . join (' , ' , keys %{$vals }) });
451+
442452 # Process the template
443453 if (!$template -> process($filename , $vals , \$rc )) {
444454 if (my $err = $template -> error()) {
You can’t perform that action at this time.
0 commit comments