fixing help feature with new template structure

Signed-off-by: Chris Cormack <crc@liblime.com>
This commit is contained in:
Joshua Ferraro 2007-08-30 14:59:06 -05:00 committed by Chris Cormack
parent ebb3697a4d
commit 78d564b26e
2 changed files with 2 additions and 3 deletions

View File

@ -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 );

View File

@ -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(