From 41ae39771b89ed11998173ddd6f095f9fe7060b1 Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 22 Apr 2022 13:49:57 +0200 Subject: [PATCH] events.pm: shorter --- lib/calcms/events.pm | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/calcms/events.pm b/lib/calcms/events.pm index 83f4c53..6c5e4e3 100644 --- a/lib/calcms/events.pm +++ b/lib/calcms/events.pm @@ -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'; } }