events.pm: remove time_of_day
This commit is contained in:
@@ -1092,7 +1092,6 @@ sub get_query($$$) {
|
|||||||
,e.start
|
,e.start
|
||||||
,e.end
|
,e.end
|
||||||
,TIMEDIFF(e.end,e.start) duration
|
,TIMEDIFF(e.end,e.start) duration
|
||||||
,e.time_of_day
|
|
||||||
,e.program
|
,e.program
|
||||||
,e.series_name
|
,e.series_name
|
||||||
,e.title
|
,e.title
|
||||||
@@ -1597,16 +1596,6 @@ sub check_params ($$) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $time_of_day = $params->{time_of_day} || '';
|
|
||||||
my $found = 0;
|
|
||||||
if ( defined $time_of_day ) {
|
|
||||||
for my $key ( 'night', 'morning', 'noon', 'afternoon', 'evening' ) {
|
|
||||||
$found = 1 if ( $key eq $time_of_day );
|
|
||||||
}
|
|
||||||
log::error( $config, 'invalid time_of_day' )
|
|
||||||
if ( $time_of_day ne '' ) && ( $found == 0 );
|
|
||||||
}
|
|
||||||
|
|
||||||
my $tag = $params->{tag} || '';
|
my $tag = $params->{tag} || '';
|
||||||
if ( ( defined $tag ) && ( $tag ne '' ) ) {
|
if ( ( defined $tag ) && ( $tag ne '' ) ) {
|
||||||
log::error( $config, "invalid tag" ) if ( $tag =~ /\s/ );
|
log::error( $config, "invalid tag" ) if ( $tag =~ /\s/ );
|
||||||
@@ -1774,7 +1763,6 @@ sub check_params ($$) {
|
|||||||
my $checked = {
|
my $checked = {
|
||||||
date => $date,
|
date => $date,
|
||||||
time => $time,
|
time => $time,
|
||||||
time_of_day => $time_of_day,
|
|
||||||
from_date => $from_date,
|
from_date => $from_date,
|
||||||
till_date => $till_date,
|
till_date => $till_date,
|
||||||
date_range_include => $date_range_include,
|
date_range_include => $date_range_include,
|
||||||
|
|||||||
@@ -411,7 +411,7 @@ sub check_permission($$) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#not handled, yet:
|
#not handled, yet:
|
||||||
# responsible, status, rating, podcast_url, media_url, visible, time_of_day, recurrence, reference, created_at, time_of_day,
|
# responsible, status, rating, podcast_url, media_url, visible, recurrence, reference, created_at
|
||||||
|
|
||||||
#insert event
|
#insert event
|
||||||
sub insert_event ($$) {
|
sub insert_event ($$) {
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ $events=[
|
|||||||
'start_minute' => q|<TMPL_VAR start_minute>|,
|
'start_minute' => q|<TMPL_VAR start_minute>|,
|
||||||
'start' => q|<TMPL_VAR start>|,
|
'start' => q|<TMPL_VAR start>|,
|
||||||
'static_files_url' => q|<TMPL_VAR static_files_url>|,
|
'static_files_url' => q|<TMPL_VAR static_files_url>|,
|
||||||
'time_of_day' => q|<TMPL_VAR time_of_day>|,
|
|
||||||
'title' => q|<TMPL_VAR title>|,
|
'title' => q|<TMPL_VAR title>|,
|
||||||
'week_of_year' => q|<TMPL_VAR week_of_year>|,
|
'week_of_year' => q|<TMPL_VAR week_of_year>|,
|
||||||
'weekday_name' => q|<TMPL_VAR weekday_name>|,
|
'weekday_name' => q|<TMPL_VAR weekday_name>|,
|
||||||
|
|||||||
Reference in New Issue
Block a user