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 <roch.damour@inlibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Mark Tompsett 2018-01-30 19:53:32 +00:00 committed by Jonathan Druart
parent 84d6c23edd
commit 4218875ec0
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -70,7 +70,7 @@
<p>I encountered some problems.</p>
<ul>
[% IF ( perlversion ) %]
<li>Your Perl version is out of date. Please upgrade to a newer version of Perl (at least version 5.10).</li>
<li>Your Perl version is out of date. Please upgrade to a newer version of Perl (at least version [% perlversion %]).</li>
[% END %]
</ul>
[% END %]