Bug 20104: Update minimum version of Perl to 5.20
authorMark Tompsett <mtompset@hotmail.com>
Tue, 30 Jan 2018 19:53:32 +0000 (19:53 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Apr 2018 19:45:09 +0000 (16:45 -0300)
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>

installer/install.pl
koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt

index a7aaa28..c132939 100755 (executable)
@@ -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;
     }
 
index 806f28e..7cebfa8 100644 (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 %]