Skip to:
Content

BuddyPress.org

Ticket #5658: 5658.patch

File 5658.patch, 710 bytes (added by boonebgorges, 12 years ago)
  • bp-loader.php

    diff --git bp-loader.php bp-loader.php
    index b1a1c1f..6063ab6 100644
     
    2525if ( ! defined( 'ABSPATH' ) ) exit;
    2626
    2727// Assume you want to load from build
    28 $bp_loader = __DIR__ . '/build/bp-loader.php';
     28$bp_loader = dirname( __FILE__ ) . '/build/bp-loader.php';
    2929
    3030// Load from source if no build exists
    3131if ( ! file_exists( $bp_loader ) || defined( 'BP_LOAD_SOURCE' ) ) {
    32         $bp_loader = __DIR__ . '/src/bp-loader.php';
     32        $bp_loader = dirname( __FILE__ ) . '/src/bp-loader.php';
    3333}
    3434
    3535// Include BuddyPress
    3636include( $bp_loader );
    3737
    3838// Unset the loader, since it's loaded in global scope
    39 unset( $bp_loader );
    40  No newline at end of file
     39unset( $bp_loader );