koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/html-template moredetail.pl,1.2,1.3


From: Andrew Arensburger
Subject: [Koha-cvs] CVS: koha/html-template moredetail.pl,1.2,1.3
Date: Sat, 05 Oct 2002 03:04:26 -0700

Update of /cvsroot/koha/koha/html-template
In directory usw-pr-cvs1:/tmp/cvs-serv27505/html-template

Modified Files:
        moredetail.pl 
Log Message:
Merged with arensb-context branch: use C4::Context->dbh instead of
&C4Connect, and generally prefer C4::Context over C4::Database.


Index: moredetail.pl
===================================================================
RCS file: /cvsroot/koha/koha/html-template/moredetail.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** moredetail.pl       14 Aug 2002 18:12:53 -0000      1.2
--- moredetail.pl       5 Oct 2002 10:04:24 -0000       1.3
***************
*** 21,24 ****
--- 21,25 ----
  use strict;
  require Exporter;
+ use C4::Context;
  use C4::Koha;
  use CGI;
***************
*** 29,58 ****
  my $query=new CGI;
  
! 
! my $language='french';
! 
! 
! my %configfile;
! open (KC, "/etc/koha.conf");
! while (<KC>) {
!  chomp;
!  (next) if (/^\s*#/);
!  if (/(.*)\s*=\s*(.*)/) {
!    my $variable=$1;
!    my $value=$2;
!    # Clean up white space at beginning and end
!    $variable=~s/^\s*//g;
!    $variable=~s/\s*$//g;
!    $value=~s/^\s*//g;
!    $value=~s/\s*$//g;
!    $configfile{$variable}=$value;
!  }
! }
! 
! my $includes=$configfile{'includes'};
! ($includes) || ($includes="/usr/local/www/hdl/htdocs/includes");
  my $templatebase="catalogue/moredetail.tmpl";
! my $startfrom=$query->param('startfrom');
! ($startfrom) || ($startfrom=0);
  my $theme=picktemplate($includes, $templatebase);
  
--- 30,37 ----
  my $query=new CGI;
  
! my $includes = C4::Context->config('includes') ||
!       "/usr/local/www/hdl/htdocs/includes";
  my $templatebase="catalogue/moredetail.tmpl";
! my $startfrom=$query->param('startfrom') || 0;
  my $theme=picktemplate($includes, $templatebase);
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]