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>
$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;
}
<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 %]