# 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;
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 );