[Koha-cvs] CVS: koha moredetail.pl,1.9,1.9.2.1
Andrew Arensburger
arensb at users.sourceforge.net
Fri Oct 4 04:52:04 CEST 2002
Update of /cvsroot/koha/koha
In directory usw-pr-cvs1:/tmp/cvs-serv25936
Modified Files:
Tag: arensb-context
moredetail.pl
Log Message:
Use C4::Connect instead of C4::Database, C4::Connect->dbh instead
C4Connect.
Removed old code for reading /etc/koha.conf.
Index: moredetail.pl
===================================================================
RCS file: /cvsroot/koha/koha/moredetail.pl,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -C2 -r1.9 -r1.9.2.1
*** moredetail.pl 14 Aug 2002 18:12:51 -0000 1.9
--- moredetail.pl 4 Oct 2002 02:52:02 -0000 1.9.2.1
***************
*** 30,58 ****
! 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,57 ----
! #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 = 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);
More information about the Koha-cvs
mailing list