Bugzilla – Attachment 35963 Details for
Bug 13473
Plugins fail when loading templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13473 - Plugins fail in 3.18
Bug-13473---Plugins-fail-in-318.patch (text/plain), 1.06 KB, created by
Kyle M Hall
on 2015-02-17 11:26:12 UTC
(
hide
)
Description:
Bug 13473 - Plugins fail in 3.18
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2015-02-17 11:26:12 UTC
Size:
1.06 KB
patch
obsolete
>From ec2f14b8750edfbcd19aebd7ab3e9c5036580272 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 17 Feb 2015 06:23:35 -0500 >Subject: [PATCH] Bug 13473 - Plugins fail in 3.18 > >When trying to execute or configure the plugin on 3.18 I got: > >Template process failed: file error - doc-head-open.inc: not found at >/usr/share/koha/lib/C4/Templates.pm line 129. > >Test Plan: >1) Install the Kitchen Sink plugin >2) Go to the configuration page of the plugin >3) Note the template processing error >4) Apply this patch >5) Refresh the page >6) Note the page now loads >--- > C4/Templates.pm | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > >diff --git a/C4/Templates.pm b/C4/Templates.pm >index 5a5cbd0..52a7229 100644 >--- a/C4/Templates.pm >+++ b/C4/Templates.pm >@@ -264,6 +264,10 @@ sub themelanguage { > return ( $theme, 'en', uniq( \@themes ) ); > } > } >+ # tmpl is a full path, so this is a template for a plugin >+ if ( $tmpl =~ /^\// && -e $tmpl ) { >+ return ( $themes[0], $lang, uniq( \@themes ) ); >+ } > } > > >-- >1.7.2.5
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 13473
:
34465
|
35963
|
35965
|
36120