events.pm: allow template html

This commit is contained in:
Milan
2022-04-22 13:55:19 +02:00
parent 8258ab114e
commit e85b9398fe

View File

@@ -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' );
}