Bugzilla – Attachment 46181 Details for
Bug 14751
Allow C4::Context->interface to be set to 'sip' or 'commandline'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14751 - Allow C4::Context->interface to be set to 'sip' or 'commandline'
Bug-14751---Allow-C4Context-interface-to-be-set-to.patch (text/plain), 1.24 KB, created by
Chris Cormack
on 2016-01-04 03:37:25 UTC
(
hide
)
Description:
Bug 14751 - Allow C4::Context->interface to be set to 'sip' or 'commandline'
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2016-01-04 03:37:25 UTC
Size:
1.24 KB
patch
obsolete
>From 143d84868496e964699a7928ebc28c5e42a5a1fa Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 28 Aug 2015 07:31:10 -0400 >Subject: [PATCH] Bug 14751 - Allow C4::Context->interface to be set to 'sip' > or 'commandline' > >Koha::Logger allows us to split up logging to separate files based on >the interface. However, right now the interface is limited to just >'opac' or 'intranet'. > >We should extend this to allow the interface to also be set to 'sip' >for SIP server logging, and to 'commandline' for cronjobs and all other >command line scripts. > >Signed-off-by: Chris <chris@bigballofwax.co.nz> > >Does what it says on the tin >--- > C4/Context.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index 341438a..f7eb4f6 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -1117,7 +1117,7 @@ sub interface { > > if (defined $interface) { > $interface = lc $interface; >- if ($interface eq 'opac' || $interface eq 'intranet') { >+ if ($interface eq 'opac' || $interface eq 'intranet' || $interface eq 'sip' || $interface eq 'commandline') { > $context->{interface} = $interface; > } else { > warn "invalid interface : '$interface'"; >-- >1.7.10.4
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 14751
:
42061
|
46181
|
47679
|
47680