Bug 10380: Change prototype for output_pref() routine
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 30 May 2013 12:32:33 +0000 (14:32 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 17 Oct 2013 23:34:26 +0000 (23:34 +0000)
commit45e6a7e58fcc01b319022e8178f9dbd27f0e1090
tree26f278744f935f3cdecaa47140ef301b777ac8f5
parent969669bb1e2cb08bbfc91334b6c52e3dd0413e11
Bug 10380: Change prototype for output_pref() routine

Koha::DateUtils::output_pref took 4 parameters and the last one is a
boolean, so some calls were:
  output_pref($dt, undef, undef, 1)

This patch changes its prototype to
  output_pref({
    dt => $dt,
    dateformat => $dateformat,
    timeformat => $timeformat,
    dateonly => $boolean
  });

An alternative is to call the output_pref routine with a datetime
object, without using an hashref:

  output_pref($dt);

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Letters.pm
C4/Reserves.pm
Koha/DateUtils.pm
Koha/Template/Plugin/KohaDates.pm
acqui/lateorders.pl
members/member.pl
t/DateUtils.t