From 119ce71013720444c7c826a0ea36732c3fbe2eb5 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 13 May 2013 09:05:55 +0200 Subject: [PATCH] Bug 10052: QA Followup Content-Type: text/plain; charset=utf-8 As Katrin pointed out, the intranetstylesheet setting was not respected in the help pages. The script help.pl does not use get_template_and_user which sets these variables via Auth.pm but calls gettemplate. This makes it necessary to 'manually' set them. This patch does that. Evidently, this could be the case for some other templates vars too.. Test plan: Apply all patches for 10052. Change intranetstylesheet. Check a help page. Change intranetcolorstylesheet. Check a help page. --- help.pl | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/help.pl b/help.pl index f641fe6..fde99d9 100755 --- a/help.pl +++ b/help.pl @@ -55,6 +55,10 @@ unless ( -e "$htdocs/$theme/$lang/modules/$from" ) { } my $template = C4::Templates::gettemplate($from, 'intranet', $query); -$template->param( referer => $refer ); +$template->param( + referer => $refer, + intranetstylesheet => C4::Context->preference("intranetstylesheet"), + intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), +); output_html_with_http_headers $query, "", $template->output; -- 1.7.7.6