From 6098d9c4eb571e46475994e567aca74091595cf6 Mon Sep 17 00:00:00 2001 From: tipaul Date: Fri, 20 Dec 2002 08:35:19 +0000 Subject: [PATCH] little modif in gettemplate. auto-replaces theme and lang template variable. This is useful if you have images in your template : //images/picture.gif> or /images/picture.gif> in the case of a non-language dependant image. Before this fix, gettemplate only replaced a variable called themelang, which was useful for language dependant images, but didn't work with theme-only images. Note the previous behaviour is still activated (ie : themelang still works) --- C4/Output.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/Output.pm b/C4/Output.pm index 5436dcaf54..0bd05ac530 100644 --- a/C4/Output.pm +++ b/C4/Output.pm @@ -94,7 +94,9 @@ sub gettemplate { global_vars => 1, path => ["$htdocs/$theme/$lang/includes"]); - $template->param(themelang => "/$theme/$lang"); + $template->param(themelang => "/$theme/$lang", + theme => $theme, + lang => $lang); return $template; } -- 2.39.5