From 0825ea55af5dbb2abca1682ae97f728388618358 Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 22 Apr 2022 13:57:10 +0200 Subject: [PATCH] events.pm: add local_base_url to template params --- lib/calcms/events.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/calcms/events.pm b/lib/calcms/events.pm index 952939b..35efcdc 100644 --- a/lib/calcms/events.pm +++ b/lib/calcms/events.pm @@ -267,6 +267,7 @@ sub modify_results ($$$$) { $result->{base_domain} = $config->{locations}->{base_domain}; $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->{is_running} = 1 if $running_event_id @@ -1228,6 +1229,7 @@ sub render($$$$;$) { # $tparams->{print} =1 if ($params->{print} eq '1'); $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->{modified_at} = time::time_to_datetime( time() ); if ( ( defined $params->{template} )