Bug 12845: C4::Output::FormatData can be removed
Test plan: git grep FormatData should not return any result in pl and pm files. Signed-off-by: Nick Clemens <nick@quecheelibrary.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
adcabe6f8f
commit
ed7221102f
16
C4/Output.pm
16
C4/Output.pm
|
|
@ -53,7 +53,7 @@ BEGIN {
|
|||
setlanguagecookie getlanguagecookie pagination_bar parametrized_url
|
||||
);
|
||||
push @EXPORT, qw(
|
||||
&output_html_with_http_headers &output_ajax_with_http_headers &output_with_http_headers FormatData
|
||||
&output_html_with_http_headers &output_ajax_with_http_headers &output_with_http_headers
|
||||
);
|
||||
|
||||
}
|
||||
|
|
@ -67,20 +67,6 @@ C4::Output - Functions for managing output, is slowly being deprecated
|
|||
=over 2
|
||||
=cut
|
||||
|
||||
=item FormatData
|
||||
|
||||
FormatData($data_hashref)
|
||||
C<$data_hashref> is a ref to data to format
|
||||
|
||||
Format dates of data those dates are assumed to contain date in their noun
|
||||
Could be used in order to centralize all the formatting for HTML output
|
||||
=cut
|
||||
|
||||
sub FormatData{
|
||||
my $data_hashref=shift;
|
||||
$$data_hashref{$_} = format_date( $$data_hashref{$_} ) for grep{/date/} keys (%$data_hashref);
|
||||
}
|
||||
|
||||
=item pagination_bar
|
||||
|
||||
pagination_bar($base_url, $nb_pages, $current_page, $startfrom_name)
|
||||
|
|
|
|||
Loading…
Reference in New Issue