Skip to content

Commit 0be9eff

Browse files
committed
added debugging
1 parent a54bc8f commit 0be9eff

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/VWF/Display.pm

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)