move config cache/base_url to locations/widget_render_url

This commit is contained in:
Milan
2023-02-26 22:52:22 +01:00
parent 4521c3ed6c
commit 9c2cb45047
25 changed files with 48 additions and 51 deletions

View File

@@ -264,7 +264,7 @@ sub modify_results ($$$$) {
$result->{static_files_url} = $config->{locations}->{static_files_url};
$result->{source_base_url} = $config->{locations}->{source_base_url};
$result->{local_base_url} = $config->{locations}->{local_base_url};
$result->{cache_base_url} = $config->{cache}->{base_url};
$result->{widget_render_url}= $config->{locations}->{widget_render_url};
$result->{is_running} = 1 if $running_event_id
&& $result->{event_id}
@@ -1221,7 +1221,7 @@ sub render($$$$;$) {
$tparams->{base_url} = $config->{locations}->{base_url};
$tparams->{base_domain} = $config->{locations}->{base_domain};
$tparams->{local_base_url} = $config->{locations}->{local_base_url};
$tparams->{cache_base_url} = $config->{cache}->{base_url};
$tparams->{widget_render_url} = $config->{locations}->{widget_render_url};
$tparams->{modified_at} = time::time_to_datetime( time() );
if ( ( defined $params->{template} )
&& ( $params->{template} =~ /(\.xml)/ ) )