events.pm: allow template html
This commit is contained in:
@@ -1719,8 +1719,10 @@ sub check_params ($$) {
|
|||||||
|
|
||||||
#print STDERR $params->{template}."\n";
|
#print STDERR $params->{template}."\n";
|
||||||
my $template = '.html';
|
my $template = '.html';
|
||||||
if ( ( defined $params->{template} ) && ( $params->{template} eq 'no' ) ) {
|
if ( ($params->{template}//'') eq 'no' ) {
|
||||||
$template = 'no';
|
$template = 'no';
|
||||||
|
} elsif ( ($params->{template}//'') eq 'html' ) {
|
||||||
|
$template = 'html';
|
||||||
} else {
|
} else {
|
||||||
$template = template::check( $config, $params->{template}, 'event_list.html' );
|
$template = template::check( $config, $params->{template}, 'event_list.html' );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user