missing $query arg to themelanguage()
authorMason James <mtj@liblime.com>
Mon, 7 Jan 2008 07:57:34 +0000 (01:57 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 7 Jan 2008 08:04:44 +0000 (02:04 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>

help.pl

diff --git a/help.pl b/help.pl
index b2f7482..39b93d1 100755 (executable)
--- a/help.pl
+++ b/help.pl
@@ -32,10 +32,10 @@ sub gethelptemplate {
 
     my $htdocs;
     $htdocs = C4::Context->config('intrahtdocs');
-    my ( $theme, $lang ) = themelanguage( $htdocs, $tmplbase, "intranet" );
+    my ( $theme, $lang ) = themelanguage( $htdocs, $tmplbase, "intranet", $query );
     unless ( -e "$htdocs/$theme/$lang/$tmplbase" ) {
         $tmplbase = "modules/help/nohelp.tmpl";
-        ( $theme, $lang ) = themelanguage( $htdocs, $tmplbase, "intranet" );
+        ( $theme, $lang ) = themelanguage( $htdocs, $tmplbase, "intranet", $query );
     }
     my $template = HTML::Template->new(
         filename          => "$htdocs/$theme/$lang/$tmplbase",