Bugzilla – Attachment 31345 Details for
Bug 12845
C4::Output::FormatData is unused
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12845: C4::Output::FormatData can be removed
Bug-12845-C4OutputFormatData-can-be-removed.patch (text/plain), 1.58 KB, created by
Marcel de Rooy
on 2014-09-03 14:09:57 UTC
(
hide
)
Description:
Bug 12845: C4::Output::FormatData can be removed
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2014-09-03 14:09:57 UTC
Size:
1.58 KB
patch
obsolete
>From 6d82d165837c48d16a85fbb9a6783428c8f63905 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 28 Aug 2014 17:03:32 +0200 >Subject: [PATCH] Bug 12845: C4::Output::FormatData can be removed >Content-Type: text/plain; charset=utf-8 > >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> >--- > C4/Output.pm | 16 +--------------- > 1 files changed, 1 insertions(+), 15 deletions(-) > >diff --git a/C4/Output.pm b/C4/Output.pm >index 324cf69..d011279 100644 >--- a/C4/Output.pm >+++ b/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 FormatNumber >+ &output_html_with_http_headers &output_ajax_with_http_headers &output_with_http_headers FormatNumber > ); > > } >@@ -93,20 +93,6 @@ if ( $cur_format eq 'FR' ) { > return $num; > } > >-=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) >-- >1.7.7.6
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12845
:
31261
|
31332
|
31334
|
31336
|
31345
|
35289