Bug 7547: (QA follow-up) Make button background transparent for consistency
[srvgit] / help.pl
diff --git a/help.pl b/help.pl
index b812208..d549c23 100755 (executable)
--- a/help.pl
+++ b/help.pl
@@ -17,8 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with Koha; if not, see <http://www.gnu.org/licenses>.
 
-use strict;
-use warnings;
+use Modern::Perl;
 use C4::Templates;
 use C4::Output;
 # use C4::Auth;
@@ -69,7 +68,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 );