Skip to content

Commit

Permalink
Fix recognition of SQLUSER and SQLPASS variables in WellWell::Data::m…
Browse files Browse the repository at this point in the history
…ake_classes.
  • Loading branch information
racke committed Dec 9, 2010
1 parent 3b85427 commit 2e83697
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/WellWell/Data.pm
Expand Up @@ -82,9 +82,8 @@ sub make_classes {
if (@sqlparms == 1) {
push (@sqlparms, $::Variable->{SQLUSER}, $::Variable->{SQLPASS});
}
else {
($args{db_dsn}, $args{db_username}, $args{db_password}) = @sqlparms;
}

($args{db_dsn}, $args{db_username}, $args{db_password}) = @sqlparms;

$args{class_prefix} = 'Catalog::Database::' . ucfirst($catalog);
$args{include_tables} = ['plugins'];
Expand Down

0 comments on commit 2e83697

Please sign in to comment.