Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/11/2008 09:55:51 AM (19 years ago)
Author:
mdawaffe
Message:

ignore config.php if bb-config.php found. validate_current_database() with explicit db_connect. Fixes #855

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-admin/class-install.php

    r1385 r1410  
    412412                }
    413413               
    414                 if ($this->configs['config.php']) {
     414                if ($this->configs['config.php'] && !$this->configs['bb-config.php']) {
    415415                        // There is an old school config file
    416416                        // Step -1 is where we send fatal errors from any screen
    … …  
    521521                        global $bbdb;
    522522                }
    523                
    524                 if (!is_resource($bbdb->dbh_local)) {
     523
     524                $db = $bbdb->db_connect( "SELECT * FROM $bbdb->forums LIMIT 1" );
     525
     526                if (!is_resource($db)) {
    525527                        return false;
    526528                }
Note: See TracChangeset for help on using the changeset viewer.