From 4218875ec039dc375124f969caea1624399c21a4 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Tue, 30 Jan 2018 19:53:32 +0000 Subject: [PATCH] Bug 20104: Update minimum version of Perl to 5.20 This patch not only updates the version check, but repurposes the perlversion parameter, so as to not have to retranslate templates again when the version number changes after this. The changes are very self-evident. Signed-off-by: Roch D'Amour Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- installer/install.pl | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/installer/install.pl b/installer/install.pl index a7aaa28e2f..c1329393eb 100755 --- a/installer/install.pl +++ b/installer/install.pl @@ -93,8 +93,8 @@ if ( $step && $step == 1 ) { $template->param( 'checkmodule' => 1 ) ; # we start with the assumption that there are no problems and set this to 0 if there are - unless ( $] >= 5.010000 ) { # Bug 7375 - $template->param( problems => 1, perlversion => 1, checkmodule => 0 ); + unless ( $] >= 5.020000 ) { # Bug 20104 + $template->param( problems => 1, perlversion => '5.20', checkmodule => 0 ); $checkmodule = 0; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt index 806f28eb79..7cebfa8dcd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt @@ -70,7 +70,7 @@

I encountered some problems.

    [% IF ( perlversion ) %] -
  • Your Perl version is out of date. Please upgrade to a newer version of Perl (at least version 5.10).
  • +
  • Your Perl version is out of date. Please upgrade to a newer version of Perl (at least version [% perlversion %]).
  • [% END %]
[% END %] -- 2.39.5