Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/10/2014 03:54:41 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Bracketize extensions, and missed a spot in the admin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/loader.php

    r5155 r5441  
    9090
    9191                // Define the parent forum ID
    92                 if ( !defined( 'BP_FORUMS_PARENT_FORUM_ID' ) )
     92                if ( !defined( 'BP_FORUMS_PARENT_FORUM_ID' ) ) {
    9393                        define( 'BP_FORUMS_PARENT_FORUM_ID', 1 );
     94                }
    9495
    9596                // Define a slug, if necessary
    96                 if ( !defined( 'BP_FORUMS_SLUG' ) )
     97                if ( !defined( 'BP_FORUMS_SLUG' ) ) {
    9798                        define( 'BP_FORUMS_SLUG', $this->id );
     99                }
    98100
    99101                // All arguments for forums component
     
    165167
    166168                // Stop if there is no user displayed or logged in
    167                 if ( !is_user_logged_in() && !bp_displayed_user_id() )
     169                if ( !is_user_logged_in() && !bp_displayed_user_id() ) {
    168170                        return;
     171                }
    169172
    170173                // Define local variable(s)
     
    182185
    183186                // Determine user to use
    184                 if ( bp_displayed_user_id() )
     187                if ( bp_displayed_user_id() ) {
    185188                        $user_domain = bp_displayed_user_domain();
    186                 elseif ( bp_loggedin_user_domain() )
     189                } elseif ( bp_loggedin_user_domain() ) {
    187190                        $user_domain = bp_loggedin_user_domain();
    188                 else
     191                } else {
    189192                        return;
     193                }
    190194
    191195                // User link
Note: See TracChangeset for help on using the changeset viewer.