Ticket #4462: mythweb-lighttpd-envvar.patch
File mythweb-lighttpd-envvar.patch, 672 bytes (added by , 16 years ago) |
---|
-
mythweb.pl
old new 43 43 44 44 # Connect to the database 45 45 END { $dbh->disconnect() if ($dbh); } 46 our $dbh = DBI->connect("dbi:mysql:database=$ENV{' db_name'}:host=$ENV{'db_server'}",47 $ENV{' db_login'},48 $ENV{' db_password'});46 our $dbh = DBI->connect("dbi:mysql:database=$ENV{'DB_NAME'}:host=$ENV{'DB_SERVER'}", 47 $ENV{'DB_LOGIN'}, 48 $ENV{'DB_PASSWORD'}); 49 49 unless ($dbh) { 50 50 print header(), 51 51 "Cannot connect to database: $!\n\n";