Ticket #4462: mythweb-lighttpd-envvar.patch

File mythweb-lighttpd-envvar.patch, 672 bytes (added by mans@…, 16 years ago)

make mythweb.pl work with lighttpd

  • mythweb.pl

    old new  
    4343
    4444# Connect to the database
    4545    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'});
    4949    unless ($dbh) {
    5050        print header(),
    5151              "Cannot connect to database: $!\n\n";