[wellwell-devel] [wellwell/zoom] Fix recognition of SQLUSER and SQLPASS variables in WellWell::Data::make_classes.
Stefan Hornburg
wellwell-devel at rt.icdevgroup.org
Thu Dec 9 14:20:37 UTC 2010
commit 2e83697edbe4413595c3ab04e815fc5c87f4dd5b
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Thu Dec 9 15:20:07 2010 +0100
Fix recognition of SQLUSER and SQLPASS variables in WellWell::Data::make_classes.
lib/WellWell/Data.pm | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/lib/WellWell/Data.pm b/lib/WellWell/Data.pm
index 2177ccd..7f00c1e 100644
--- a/lib/WellWell/Data.pm
+++ b/lib/WellWell/Data.pm
@@ -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'];
More information about the wellwell-devel
mailing list