Ticket #837: 837.diff

File 837.diff, 848 bytes (added by mdawaffe, 4 years ago)
  • bb-settings.php

     
    7575require( BB_PATH . BB_INC . 'classes.php'); 
    7676if ( !defined('BB_LANG') && defined('BBLANG') && '' != BBLANG ) // User has set old constant 
    7777        define('BB_LANG', BBLANG); 
    78 if ( defined('BB_LANG') && '' != BB_LANG ) { 
    79         include_once(BB_PATH . BB_INC . 'streams.php'); 
    80         include_once(BB_PATH . BB_INC . 'gettext.php'); 
    81 } 
    8278if ( !( defined('DB_NAME') || defined('WP_BB') && WP_BB ) ) {  // Don't include these when WP is running. 
     79        if ( defined('BB_LANG') && '' != BB_LANG ) { 
     80                include_once(BB_PATH . BB_INC . 'streams.php'); 
     81                include_once(BB_PATH . BB_INC . 'gettext.php'); 
     82        } 
    8383        require( BB_PATH . BB_INC . 'kses.php'); 
    8484        require( BB_PATH . BB_INC . 'l10n.php'); 
    8585}