Changeset 1658

Show
Ignore:
Timestamp:
08/26/08 20:15:03 (3 months ago)
Author:
mdawaffe
Message:

allow 0.9 branch to use hyperdb (or other db) too

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.9/bb-settings.php

    r1516 r1658  
    5757// Define the include path 
    5858define('BB_INC', 'bb-includes/'); 
    59  
    60 // Load the database class 
    61 require( BB_PATH . BB_INC . 'db.php' ); 
    6259 
    6360// Define the language file directory 
     
    8481        require( BB_PATH . BB_INC . 'l10n.php'); 
    8582} 
     83 
     84/** 
     85 * Define the full path to the database class 
     86 */ 
     87if ( !defined('BB_DATABASE_CLASS_INCLUDE') ) 
     88        define('BB_DATABASE_CLASS_INCLUDE', BB_INC . 'db.php' ); 
     89 
     90// Load the database class 
     91if ( BB_DATABASE_CLASS_INCLUDE ) 
     92        require( BB_DATABASE_CLASS_INCLUDE ); 
    8693 
    8794if ( is_wp_error( $bbdb->set_prefix( $bb_table_prefix ) ) )