Bugzilla – Attachment 87897 Details for
Bug 22451
Asset plugin is using the version from the DB
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22451: Make Asset plugin use Koha::version instead of version from db
Bug-22451-Make-Asset-plugin-use-Kohaversion-instea.patch (text/plain), 1.19 KB, created by
Katrin Fischer
on 2019-04-12 12:35:32 UTC
(
hide
)
Description:
Bug 22451: Make Asset plugin use Koha::version instead of version from db
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-04-12 12:35:32 UTC
Size:
1.19 KB
patch
obsolete
>From ede26b9ad28917770ad46030933fa031d0f2273a Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Tue, 26 Feb 2019 13:30:20 +0000 >Subject: [PATCH] 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> >--- > Koha/Template/Plugin/Asset.pm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/Koha/Template/Plugin/Asset.pm b/Koha/Template/Plugin/Asset.pm >index 4cbc1bd0e8..08748b46e3 100644 >--- a/Koha/Template/Plugin/Asset.pm >+++ b/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) { >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22451
:
86034
|
86035
|
86036
|
86115
|
86116
|
86117
|
87821
|
87822
|
87823
| 87897 |
87899
|
87900