[Koha-cvs] CVS: koha/C4 Output.pm,1.6.2.18,1.6.2.19

Finlay Thompson finlayt at users.sourceforge.net
Mon Sep 16 07:58:28 CEST 2002


Update of /cvsroot/koha/koha/C4
In directory usw-pr-cvs1:/tmp/cvs-serv14861/C4

Modified Files:
      Tag: rel-1-2
	Output.pm 
Log Message:

Added the "global_vars" option to the gettemplate sub.


Index: Output.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Output.pm,v
retrieving revision 1.6.2.18
retrieving revision 1.6.2.19
diff -C2 -r1.6.2.18 -r1.6.2.19
*** Output.pm	12 Sep 2002 04:22:35 -0000	1.6.2.18
--- Output.pm	16 Sep 2002 05:58:26 -0000	1.6.2.19
***************
*** 93,98 ****
      my ($theme, $lang) = themelanguage($htdocs, $tmplbase);
  
!     my $template = HTML::Template->new(filename          => "$htdocs/$theme/$lang/$tmplbase", 
! 				   die_on_bad_params => 0, 
  				   path              => ["$htdocs/$theme/$lang/includes"]);
  
--- 93,99 ----
      my ($theme, $lang) = themelanguage($htdocs, $tmplbase);
  
!     my $template = HTML::Template->new(filename      => "$htdocs/$theme/$lang/$tmplbase", 
! 				   die_on_bad_params => 0,
! 				   global_vars       => 1,
  				   path              => ["$htdocs/$theme/$lang/includes"]);
  
***************
*** 136,140 ****
    $sth->finish;
    my @languages = split " ", $lang;
-   warn "Lang = @languages\n";
  
  # theme preferences....
--- 137,140 ----
***************
*** 144,148 ****
    $sth->finish;
    my @themes = split " ", $theme;
-   warn "Theme = @themes \n";
  
    $dbh->disconnect;
--- 144,147 ----





More information about the Koha-cvs mailing list