Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/21/2008 05:10:20 AM (17 years ago)
Author:
sambauers
Message:
  • Some re-organisation of bb-settings.
  • More sane treatment of BB_INSTALLING constant.
  • Add additional $_SERVER stabilisation code from WordPress
  • Start of PHPdoc for bb-settings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/pluggable.php

    r1504 r1562  
    5050//This is only used at initialization.  Use bb_get_current_user_info() (or $bb_current_user global if really needed) to grab user info.
    5151function bb_current_user() {
    52     if ( defined( 'BB_INSTALLING' ) )
     52    if (BB_INSTALLING)
    5353        return false;
    5454
     
    243243        $salt = BB_SECRET_SALT;
    244244    } else {
    245         if (!defined('BB_INSTALLING')) {
     245        if (!BB_INSTALLING) {
    246246            $salt = bb_get_option('secret');
    247247            if ( empty($salt) ) {
     
    382382        return false;
    383383
    384     if ( defined( 'BB_INSTALLING' ) ) {
     384    if (BB_INSTALLING) {
    385385        bb_update_usermeta( $user['ID'], $bbdb->prefix . 'capabilities', array('keymaster' => true) );
    386386    } else {       
Note: See TracChangeset for help on using the changeset viewer.