Bug 17964: Support date formatting
Using the KohaDates plugin will allow us to format dates as we want, using the same filters as the ones defined in the KohaDates TT plugin. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
b2b4be996a
commit
30bdf6edec
|
|
@ -1460,6 +1460,8 @@ sub _process_tt {
|
|||
|
||||
my $tt_params = { %{ _get_tt_params( $tables ) }, %{ _get_tt_params( $loops, 'is_a_loop' ) } };
|
||||
|
||||
$content = qq|[% USE KohaDates %]$content|;
|
||||
|
||||
my $output;
|
||||
$template->process( \$content, $tt_params, \$output ) || croak "ERROR PROCESSING TEMPLATE: " . $template->error();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue