From e85b9398fe77f3807ecb1b7b53f6fdfe385e7de1 Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 22 Apr 2022 13:55:19 +0200 Subject: [PATCH] events.pm: allow template html --- lib/calcms/events.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/calcms/events.pm b/lib/calcms/events.pm index 821afe0..3d83c61 100644 --- a/lib/calcms/events.pm +++ b/lib/calcms/events.pm @@ -1719,8 +1719,10 @@ sub check_params ($$) { #print STDERR $params->{template}."\n"; my $template = '.html'; - if ( ( defined $params->{template} ) && ( $params->{template} eq 'no' ) ) { + if ( ($params->{template}//'') eq 'no' ) { $template = 'no'; + } elsif ( ($params->{template}//'') eq 'html' ) { + $template = 'html'; } else { $template = template::check( $config, $params->{template}, 'event_list.html' ); }