[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/C4 Output.pm,1.34,1.35
From: |
Paul POULAIN |
Subject: |
[Koha-cvs] CVS: koha/C4 Output.pm,1.34,1.35 |
Date: |
Fri, 20 Dec 2002 00:35:23 -0800 |
Update of /cvsroot/koha/koha/C4
In directory sc8-pr-cvs1:/tmp/cvs-serv7826/C4
Modified Files:
Output.pm
Log Message:
little modif in gettemplate.
auto-replaces theme and lang template variable.
This is useful if you have images in your template :
<img src="/<TMPL_VAR name="theme">/<TMPL_VAR name="lang">/images/picture.gif>
or
<img src="/<TMPL_VAR name="theme">/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)
Index: Output.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Output.pm,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** Output.pm 10 Dec 2002 15:52:49 -0000 1.34
--- Output.pm 20 Dec 2002 08:35:19 -0000 1.35
***************
*** 95,99 ****
path =>
["$htdocs/$theme/$lang/includes"]);
! $template->param(themelang => "/$theme/$lang");
return $template;
}
--- 95,101 ----
path =>
["$htdocs/$theme/$lang/includes"]);
! $template->param(themelang => "/$theme/$lang",
! theme => $theme,
! lang => $lang);
return $template;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/C4 Output.pm,1.34,1.35,
Paul POULAIN <=
- Prev by Date:
[Koha-cvs] CVS: koha/C4 Stats.pm,1.14,1.15
- Next by Date:
[Koha-cvs] CVS: koha/misc installer.pl,1.5,1.6 Install.pm,1.1,1.2
- Previous by thread:
[Koha-cvs] CVS: koha/C4 Stats.pm,1.14,1.15
- Next by thread:
[Koha-cvs] CVS: koha/misc installer.pl,1.5,1.6 Install.pm,1.1,1.2
- Index(es):