@@ -, +, @@ html embedded logs to OPAC Signed-off-by: Marcel de Rooy --- 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(-) --- a/C4/Auth.pm +++ a/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 { --- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc @@ -1,7 +1,8 @@ +[% USE Koha %] [% IF ( bidi ) %][% ELSE %][% END %] -[%- IF LogToHtmlComments %] +[%- IF Koha.Preference('LogToHtmlComments') %] --- a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-open.inc +++ a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-open.inc @@ -1,4 +1,10 @@ +[% USE Koha %] [% IF ( bidi ) %][% ELSE %][% END %] +[%- IF Koha.Preference('LogToHtmlComments') %] + +[% END %] --