Browse Source

Partial apply of a patch from Frederic, this ensures that

Context is cached; the remaining syspref cacheing will be
delayed until 3.2 as it needs to be paired with an as yet
unwritten setter for sysprefs
3.0.x
Joshua Ferraro 16 years ago
parent
commit
6a5da19c17
  1. 4
      C4/Context.pm

4
C4/Context.pm

@ -249,11 +249,11 @@ sub db_scheme2dbi {
sub import {
my $package = shift;
my $conf_fname = shift; # Config file name
my $context;
$context;
# 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);
$context = new C4::Context($conf_fname) unless $context;
return undef if !defined($context);
$context->set_context;
}

Loading…
Cancel
Save