Make WordPress Core


Ignore:
Timestamp:
12/21/2007 01:35:26 AM (18 years ago)
Author:
ryan
Message:

Set error if there is a problem connecting to the DB. Props skeltoac and Potter_System. fixes #5495 for 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/wp-admin/setup-config.php

    r6137 r6444  
    44require_once('../wp-includes/compat.php');
    55require_once('../wp-includes/functions.php');
     6require_once('../wp-includes/classes.php');
    67
    78if (!file_exists('../wp-config-sample.php'))
     
    162163    // We'll fail here if the values are no good.
    163164    require_once('../wp-includes/wp-db.php');
     165    if ( !empty($wpdb->error) )
     166        wp_die($wpdb->error->get_error_message());
     167
    164168    $handle = fopen('../wp-config.php', 'w');
    165169
Note: See TracChangeset for help on using the changeset viewer.