Browse Source

Bug 22451: Make Asset plugin use Koha::version instead of version from db

Test plan:
Apply the patch a try to use Koha, css and js files should be used
normally

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
tags/v19.05.00
parent
commit
4d3461a671
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      Koha/Template/Plugin/Asset.pm

+ 3
- 1
Koha/Template/Plugin/Asset.pm View File

@@ -48,6 +48,7 @@ use base qw( Template::Plugin );
use File::Basename;
use File::Spec;
use C4::Context;
use Koha;

=head1 FUNCTIONS

@@ -140,7 +141,8 @@ sub url {
".",
);

my $version = C4::Context->preference('Version');
my $version = Koha::version;
$version =~ s/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/$1.$2$3$4/;
foreach my $dir (@dirs) {
my $abspath = File::Spec->catfile($root, $dir, $filename);
if (-e $abspath) {


Loading…
Cancel
Save