[Koha-cvs] CVS: koha/C4 Output.pm,1.34,1.35

Paul POULAIN tipaul at users.sourceforge.net
Fri Dec 20 09:35:23 CET 2002


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;
  }





More information about the Koha-cvs mailing list