mvhub-dev team mailing list archive
-
mvhub-dev team
-
Mailing list archive
-
Message #00055
[Branch ~mvhub-dev/mvhub/trunk] Rev 356: merged small change from refactor_reminder_email
Merge authors:
Lee Goodrich (leegoodrich)
Related merge proposals:
https://code.launchpad.net/~leegoodrich/mvhub/refactor_reminder_email/+merge/22548
proposed by: Lee Goodrich (leegoodrich)
review: Approve - Dan MacNeil (omacneil)
------------------------------------------------------------
revno: 356 [merge]
committer: Lee Goodrich <lgoodrich@xxxxxxxxxx>
branch nick: trunk
timestamp: Fri 2010-04-02 14:46:52 -0400
message:
merged small change from refactor_reminder_email
modified:
app-mvhub/bin/notification_email.pl
--
lp:mvhub
https://code.launchpad.net/~mvhub-dev/mvhub/trunk
Your team mvhub-dev is subscribed to branch lp:mvhub.
To unsubscribe from this branch go to https://code.launchpad.net/~mvhub-dev/mvhub/trunk/+edit-subscription
=== modified file 'app-mvhub/bin/notification_email.pl'
--- app-mvhub/bin/notification_email.pl 2010-03-31 20:04:36 +0000
+++ app-mvhub/bin/notification_email.pl 2010-04-02 18:46:01 +0000
@@ -34,13 +34,13 @@
/;
# Config File Variables
-my $CFG
- = MVHub::Utils::ConfigSimple::create_config_from( $ENV{MV_CONFIG_FILE} );
+my $cfg_filename = $ARGV[0] || $ENV{MV_CONFIG_FILE};
+my $CFG = MVHub::Utils::ConfigSimple::create_config_from($cfg_filename);
my $MAX_NOTIFICATIONS = $CFG->param('NOTIFICATION.max_notifications');
my $EXPIRE_MONTHS = $CFG->param('NOTIFICATION.expire_months');
-my $DBH = MVHub::Utils::DB::get_dbh( $ENV{MV_CONFIG_FILE} );
+my $DBH = MVHub::Utils::DB::get_dbh($cfg_filename);
# Email Template Paths
my $TEMPLATE_PATH = $CFG->param('ABSOLUTE_PATH.template_text_dir');