Bug 10052: QA Followup
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. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Looks all good to me now. Passes tests and still no string changes. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
70855acfea
commit
de3280088b
1 changed files with 5 additions and 1 deletions
6
help.pl
6
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;
|
||||
|
|
Loading…
Reference in a new issue