X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=help.pl;h=4df8dc2374174f9956160e469fe32c3cc5fe3c9b;hb=08fe85950ae38a4faa5f0adce5e7d308a766117a;hp=fde99d9dda4d1c9a35ac1003f1ae9d4410f7555d;hpb=de3280088b9184e55ca06ae51a25ecffc0bc92f2;p=koha_fer diff --git a/help.pl b/help.pl index fde99d9dda..4df8dc2374 100755 --- a/help.pl +++ b/help.pl @@ -61,4 +61,13 @@ $template->param( intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), ); +my $help_version = C4::Context->preference("Version"); +if ( $help_version =~ m|^(\d+)\.(\d{2}).*$| ) { + my $version = $1; + my $major = $2; + if ( $major % 2 ) { $major-- }; + $help_version = "$version.$major"; +} +$template->param( helpVersion => $help_version ); + output_html_with_http_headers $query, "", $template->output;