Bug 16724: Fix link to the online documentation links
[koha-equinox.git] / help.pl
diff --git a/help.pl b/help.pl
index b812208..ad86a2d 100755 (executable)
--- a/help.pl
+++ b/help.pl
@@ -69,7 +69,8 @@ my $help_version = C4::Context->preference("Version");
 if ( $help_version =~ m|^(\d+)\.(\d{2}).*$| ) {
     my $version = $1;
     my $major = $2;
-    if ( $major % 2 ) { $major-- };
+    unless ( $major % 2 ) { $major-- };
+    $major = sprintf("%02d", $major);
     $help_version = "$version.$major";
 }
 $template->param( helpVersion => $help_version );