fixing help feature with new template structure
authorJoshua Ferraro <jmf@liblime.com>
Thu, 30 Aug 2007 19:59:06 +0000 (14:59 -0500)
committerChris Cormack <crc@liblime.com>
Thu, 30 Aug 2007 20:51:05 +0000 (15:51 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>

C4/Auth.pm
help.pl

index 07eb0bd..a8f0c87 100644 (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 );
diff --git a/help.pl b/help.pl
index 5568207..3d59165 100755 (executable)
--- 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(