From 78d564b26e09a216fb78ff5f832d8696211b47b8 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Thu, 30 Aug 2007 14:59:06 -0500 Subject: [PATCH] fixing help feature with new template structure Signed-off-by: Chris Cormack --- C4/Auth.pm | 1 - help.pl | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 07eb0bd8a5..a8f0c8797c 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -143,7 +143,6 @@ sub get_template_and_user { $template->param( js_module => $in->{'js_module'} ); $template->param( js_page => $in->{'js_page'} ); $template->param( js_widgets => $in->{'js_widgets'} ); - $template->param( js_includes => $in->{'js_includes'} ); # user info $template->param( loggedinusername => $user ); diff --git a/help.pl b/help.pl index 5568207688..3d59165cd2 100755 --- a/help.pl +++ b/help.pl @@ -20,7 +20,7 @@ if ($referurl) { } $refer =~ /.*koha\/(.*)\.pl.*/; -my $from = "help/$1.tmpl"; +my $from = "modules/help/$1.tmpl"; my $template = gethelptemplate( $from, "intranet" ); @@ -34,7 +34,7 @@ sub gethelptemplate { $htdocs = C4::Context->config('intrahtdocs'); my ( $theme, $lang ) = themelanguage( $htdocs, $tmplbase, "intranet" ); unless ( -e "$htdocs/$theme/$lang/$tmplbase" ) { - $tmplbase = "help/nohelp.tmpl"; + $tmplbase = "modules/help/nohelp.tmpl"; ( $theme, $lang ) = themelanguage( $htdocs, $tmplbase, "intranet" ); } my $template = HTML::Template->new( -- 2.39.2