Bläddra i källkod

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>
19.05.x
Josef Moravec 5 år sedan
committad av Nick Clemens
förälder
incheckning
4d3461a671
  1. 4
      Koha/Template/Plugin/Asset.pm

4
Koha/Template/Plugin/Asset.pm

@ -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) {

Laddar…
Avbryt
Spara