[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/C4 Context.pm,1.2,1.3
From: |
Andrew Arensburger |
Subject: |
[Koha-cvs] CVS: koha/C4 Context.pm,1.2,1.3 |
Date: |
Wed, 02 Oct 2002 16:38:49 -0700 |
Update of /cvsroot/koha/koha/C4
In directory usw-pr-cvs1:/tmp/cvs-serv9058
Modified Files:
Context.pm
Log Message:
Fixed some run-time bugs, so it'll actually load.
Index: Context.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Context.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** Context.pm 2 Oct 2002 17:21:09 -0000 1.2
--- Context.pm 2 Oct 2002 23:38:47 -0000 1.3
***************
*** 100,104 ****
{
my $fname = shift; # Config file to read
! my $retval; # Return value: ref-to-hash holding the
# configuration
--- 100,104 ----
{
my $fname = shift; # Config file to read
! my $retval = {}; # Return value: ref-to-hash holding the
# configuration
***************
*** 142,146 ****
# Create a new context from the given config file name, if
# any, then set it as the current context.
! $context = __PACKAGE__->new($conf_fname);
$context->set_context;
}
--- 142,147 ----
# Create a new context from the given config file name, if
# any, then set it as the current context.
! $context = new C4::Context($conf_fname);
! return undef if !defined($context);
$context->set_context;
}
***************
*** 179,183 ****
# Load the desired config file.
$self->{"config"} = &read_config_file($conf_fname);
! return null if !defined($self->{"config"});
$self->{"dbh"} = undef; # Database handle
--- 180,184 ----
# Load the desired config file.
$self->{"config"} = &read_config_file($conf_fname);
! return undef if !defined($self->{"config"});
$self->{"dbh"} = undef; # Database handle
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/C4 Context.pm,1.2,1.3,
Andrew Arensburger <=