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>
(cherry picked from commit
4d3461a671f8ad95917aab9ac193cd69fe6c1691)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
use File::Basename;
use File::Spec;
use C4::Context;
+use Koha;
=head1 FUNCTIONS
".",
);
- 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) {