Bug 9508: Standardize the dateformat value from C4::Auth
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 18 Dec 2012 14:09:22 +0000 (15:09 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 21 May 2013 23:02:23 +0000 (20:02 -0300)
commit9cd171e5c7d4302255a27abc8a77ba1f217c14be
treecf26e864bc4619ad16394b8916103165c6ab18ea
parente776b28e31052553c994d63162a36263b3ada259
Bug 9508: Standardize the dateformat value from C4::Auth

- the dateformat value is send to all templates (from
  C4::Auth::get_template_and_user)
- remove all assignment of dateformat in all .pl files

- Remove "all" occurrences (those I found!) of dateformat_*
From now the only way to get the date format is a string comparaison
(dateformat == "metric")

Checked with the command:
  git grep "\(dateformat_us\|dateformat_metric\|dateformat_iso\)" | grep
  -v translator

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Tested all the datepickers I could find, looks good.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 537c66403855437d2ce52eeb758fc009c7105633)
14 files changed:
C4/Auth.pm
acqui/newordersubscription.pl
admin/aqbudgets.pl
koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc
koha-tmpl/intranet-tmpl/prog/en/includes/date-format.inc
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt
koha-tmpl/opac-tmpl/prog/en/includes/calendar.inc
koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt
members/memberentry.pl
reports/guided_reports.pl
serials/serials-collection.pl