events.pm: shorter

This commit is contained in:
Milan
2022-04-22 13:49:57 +02:00
parent b43d10879b
commit 41ae39771b

View File

@@ -1144,17 +1144,8 @@ sub get_query($$$) {
my $get = $params->{get} || '';
unless ( $get eq 'no_content' ) {
if ( $template =~ /\.html/ ) {
unless ( $template =~ /menu/ || $template =~ /list/ ) {
$query .= ', e.content, e.topic, e.html_content, e.html_topic, e.content_format
';
#$query.=',html_content content, html_topic topic' ;
}
} else {
unless ( $template =~ /menu/ || $template =~ /list/ ) {
$query .= ', e.content, e.topic, e.html_content, e.html_topic, e.content_format';
}
unless ( $template =~ /menu/ || $template =~ /list/ ) {
$query .= ', e.content, e.topic, e.html_content, e.html_topic';
}
}