diff options
| author | fukachan <fukachan> | 2003-11-29 06:37:26 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2003-11-29 06:37:26 +0000 |
| commit | c66f91a7f612cf5f216f247af43af461ae95a08c (patch) | |
| tree | 069247602196b8981bb568a735d68ccbd18462fb | |
| parent | 0360838be38c5386f86bbe346ad7038ad5485696 (diff) | |
| download | fml8-c66f91a7f612cf5f216f247af43af461ae95a08c.tar.gz fml8-c66f91a7f612cf5f216f247af43af461ae95a08c.tar.bz2 fml8-c66f91a7f612cf5f216f247af43af461ae95a08c.zip | |
use $curproc->config() to get config object.
| -rw-r--r-- | fml/lib/FML/User/DB.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fml/lib/FML/User/DB.pm b/fml/lib/FML/User/DB.pm index ec2dc61e..a819e618 100644 --- a/fml/lib/FML/User/DB.pm +++ b/fml/lib/FML/User/DB.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: DB.pm,v 1.2 2003/11/23 14:16:49 fukachan Exp $ +# $FML: DB.pm,v 1.3 2003/11/24 13:27:04 fukachan Exp $ # package FML::User::DB; @@ -111,7 +111,7 @@ sub find { my ($self, $class, $key) = @_; my $curproc = $self->{ _curproc }; - my $config = $debug ? $curproc->{ config } : $curproc->config(); + my $config = $curproc->config(); my $mapname = sprintf("user_db_%s_maps", $class); my $maps = $config->get_as_array_ref( $mapname ); @@ -127,7 +127,7 @@ sub find $obj = new IO::Adapter $map; $obj->open(); $obj->touch(); - $value = $obj->find($key, { + $value = $obj->find($key, { want => 'key,value', case_sensitive => 0, }); |
