Bugzilla – Attachment 18819 Details for
Bug 8190
Add a logging module to Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8190 - Add a logging module to Koha - Followup - Add html embedded logs to OPAC
Bug-8190---Add-a-logging-module-to-Koha---Followup.patch (text/plain), 2.73 KB, created by
Kyle M Hall (khall)
on 2013-06-10 12:47:43 UTC
(
hide
)
Description:
Bug 8190 - Add a logging module to Koha - Followup - Add html embedded logs to OPAC
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-06-10 12:47:43 UTC
Size:
2.73 KB
patch
obsolete
>From fc410083a0d25a2c0e04fee0194105e006733967 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 10 Jun 2013 08:43:22 -0400 >Subject: [PATCH] Bug 8190 - Add a logging module to Koha - Followup - Add html embedded logs to OPAC > >--- > C4/Auth.pm | 3 +-- > .../prog/en/includes/doc-head-open.inc | 3 ++- > .../opac-tmpl/prog/en/includes/doc-head-open.inc | 6 ++++++ > 3 files changed, 9 insertions(+), 3 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 4607345..803608a 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -329,6 +329,7 @@ sub get_template_and_user { > marcflavour => C4::Context->preference("marcflavour"), > persona => C4::Context->preference("persona"), > UseCourseReserves => C4::Context->preference("UseCourseReserves"), >+ Logger => C4::Context->logger(), > ); > if ( $in->{'type'} eq "intranet" ) { > $template->param( >@@ -361,8 +362,6 @@ sub get_template_and_user { > AllowMultipleCovers => C4::Context->preference('AllowMultipleCovers'), > EnableBorrowerFiles => C4::Context->preference('EnableBorrowerFiles'), > UseKohaPlugins => C4::Context->preference('UseKohaPlugins'), >- LogToHtmlComments => C4::Context->preference('LogToHtmlComments'), >- Logger => C4::Context->logger(), > ); > } > else { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc >index 512084c..58132eb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc >@@ -1,7 +1,8 @@ >+[% USE Koha %] > <!DOCTYPE html> > [% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %] > <head> >-[%- IF LogToHtmlComments %] >+[%- IF Koha.Preference('LogToHtmlComments') %] > <!-- LOG MESSAGES > [% FOREACH message IN Logger.get_messages() %][% message %][% END %] > --> >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-open.inc b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-open.inc >index 970324c..e083858 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-open.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-open.inc >@@ -1,4 +1,10 @@ >+[% USE Koha %] > <!DOCTYPE html> > [% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %] > <head> >+[%- IF Koha.Preference('LogToHtmlComments') %] >+<!-- LOG MESSAGES >+[% FOREACH message IN Logger.get_messages() %][% message %][% END %] >+--> >+[% END %] > <title> >-- >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 8190
:
9921
|
10996
|
12257
|
12264
|
12265
|
12270
|
12282
|
12283
|
12284
|
12287
|
12743
|
12744
|
12745
|
12746
|
13739
|
13740
|
13762
|
13763
|
13925
|
13926
|
14294
|
14296
|
14318
|
14319
|
14320
|
14321
|
14324
|
14388
|
14703
|
14704
|
14705
|
16426
|
16427
|
16428
|
16429
|
16430
|
18799
|
18800
|
18801
|
18802
|
18803
|
18819
|
18820
|
18870
|
18871
|
18872
|
18873
|
18874
|
18875
|
18876
|
18877
|
18880
|
18881
|
18882
|
18883
|
18884
|
18886
|
18887
|
18888
|
18890
|
34837
|
34838
|
34839
|
34840
|
34841
|
34842
|
34843
|
34844
|
34845