/[webpac2]/Webpacus/lib/Webpacus/Model/Databases.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Webpacus/lib/Webpacus/Model/Databases.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 352 by dpavlin, Sat Jan 7 17:34:21 2006 UTC revision 353 by dpavlin, Sat Jan 7 18:26:58 2006 UTC
# Line 30  sub new { Line 30  sub new {
30                  $c->log->fail("didn't find databases in config");                  $c->log->fail("didn't find databases in config");
31          $self->{log} = $c->log;          $self->{log} = $c->log;
32    
33          $c->log->debug("using config encoding ", $self->config->{config_encoding});          $self->{config_encoding} = $c->config->{config_encoding} and
34                    $c->log->debug("using config encoding ", $self->{config_encoding});
35    
36          return $self;          return $self;
37  }  }
# Line 46  Convert encodings from C<config_encoding Line 47  Convert encodings from C<config_encoding
47  sub convert {  sub convert {
48          my $self = shift;          my $self = shift;
49          my $val = shift || return;          my $val = shift || return;
50          my $encoding = $self->config->{config_encoding} || return $val;          my $encoding = $self->{config_encoding} || return $val;
51          return decode($encoding, $val);          return decode($encoding, $val);
52  }  }
53    

Legend:
Removed from v.352  
changed lines
  Added in v.353

  ViewVC Help
Powered by ViewVC 1.1.26