From b883e6cd7f93ef8d880f9bd559e4d8037517e054 Mon Sep 17 00:00:00 2001 From: Jesse Weaver Date: Wed, 19 Nov 2008 14:58:31 +0100 Subject: [PATCH] fix for bug 2447: yuipath variable not getting passed to help pages This updates help.pl to pass the yuipath variable correctly. It also adds some script references to help-top.inc to avoid other js errors. Signed-off-by: Galen Charlton --- help.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc diff --git a/help.pl b/help.pl index 402e7d5450..ff02bd92b6 100755 --- a/help.pl +++ b/help.pl @@ -54,7 +54,7 @@ sub gethelptemplate { C4::Context->preference("intranetcolorstylesheet"), intranetstylesheet => C4::Context->preference("intranetstylesheet"), IntranetNav => C4::Context->preference("IntranetNav"), - yuipath => C4::Context->preference("yuipath"), + yuipath => (C4::Context->preference("yuipath") eq "local"?"/intranet-tmpl/$theme/$lang/lib/yui":C4::Context->preference("yuipath")), referer => $refer, ); return $template; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc old mode 100644 new mode 100755 index 34a9113f7a..174d4bed0f --- a/koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc @@ -9,6 +9,8 @@ /css/staff-global.css" /> + + /css/" /> @@ -24,4 +26,4 @@ /css/help.css" /> - \ No newline at end of file + -- 2.39.2