Skip to:
Content

BuddyPress.org

Changeset 9514


Ignore:
Timestamp:
02/18/2015 09:01:53 PM (10 years ago)
Author:
djpaul
Message:

Replace use of __DIR__ as it is not supported on PHP 5.2.

Fixes #6083 again.

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-classes.php

    r9485 r9514  
    1010defined( 'ABSPATH' ) || exit;
    1111
    12 require __DIR__ . '/classes/class-bp-activity-activity.php';
    13 require __DIR__ . '/classes/class-bp-activity-feed.php';
    14 require __DIR__ . '/classes/class-bp-activity-query.php';
     12require dirname( __FILE__ ) . '/classes/class-bp-activity-activity.php';
     13require dirname( __FILE__ ) . '/classes/class-bp-activity-feed.php';
     14require dirname( __FILE__ ) . '/classes/class-bp-activity-query.php';
  • trunk/src/bp-blogs/bp-blogs-classes.php

    r9485 r9514  
    1111defined( 'ABSPATH' ) || exit;
    1212
    13 require __DIR__ . '/classes/class-bp-blogs-blog.php';
     13require dirname( __FILE__ ) . '/classes/class-bp-blogs-blog.php';
  • trunk/src/bp-core/bp-core-classes.php

    r9485 r9514  
    1010defined( 'ABSPATH' ) || exit;
    1111
    12 require __DIR__ . '/classes/class-bp-user-query.php';
    13 require __DIR__ . '/classes/class-bp-core-user.php';
    14 require __DIR__ . '/classes/class-bp-date-query.php';
    15 require __DIR__ . '/classes/class-bp-core-notification.php';
    16 require __DIR__ . '/classes/class-bp-button.php';
    17 require __DIR__ . '/classes/class-bp-embed.php';
    18 require __DIR__ . '/classes/class-bp-walker-nav-menu.php';
    19 require __DIR__ . '/classes/class-bp-walker-nav-menu-checklist.php';
    20 require __DIR__ . '/classes/class-bp-suggestions.php';
    21 require __DIR__ . '/classes/class-bp-members-suggestions.php';
    22 require __DIR__ . '/classes/class-bp-recursive-query.php';
     12require dirname( __FILE__ ) . '/classes/class-bp-user-query.php';
     13require dirname( __FILE__ ) . '/classes/class-bp-core-user.php';
     14require dirname( __FILE__ ) . '/classes/class-bp-date-query.php';
     15require dirname( __FILE__ ) . '/classes/class-bp-core-notification.php';
     16require dirname( __FILE__ ) . '/classes/class-bp-button.php';
     17require dirname( __FILE__ ) . '/classes/class-bp-embed.php';
     18require dirname( __FILE__ ) . '/classes/class-bp-walker-nav-menu.php';
     19require dirname( __FILE__ ) . '/classes/class-bp-walker-nav-menu-checklist.php';
     20require dirname( __FILE__ ) . '/classes/class-bp-suggestions.php';
     21require dirname( __FILE__ ) . '/classes/class-bp-members-suggestions.php';
     22require dirname( __FILE__ ) . '/classes/class-bp-recursive-query.php';
  • trunk/src/bp-friends/bp-friends-classes.php

    r9485 r9514  
    1010defined( 'ABSPATH' ) || exit;
    1111
    12 require __DIR__ . '/classes/class-bp-friends-friendship.php';
     12require dirname( __FILE__ ) . '/classes/class-bp-friends-friendship.php';
  • trunk/src/bp-groups/bp-groups-classes.php

    r9485 r9514  
    1010defined( 'ABSPATH' ) || exit;
    1111
    12 require __DIR__ . '/classes/class-bp-group-extension.php';
    13 require __DIR__ . '/classes/class-bp-group-member-query.php';
    14 require __DIR__ . '/classes/class-bp-groups-group.php';
    15 require __DIR__ . '/classes/class-bp-groups-member-suggestions.php';
    16 require __DIR__ . '/classes/class-bp-groups-member.php';
     12require dirname( __FILE__ ) . '/classes/class-bp-group-extension.php';
     13require dirname( __FILE__ ) . '/classes/class-bp-group-member-query.php';
     14require dirname( __FILE__ ) . '/classes/class-bp-groups-group.php';
     15require dirname( __FILE__ ) . '/classes/class-bp-groups-member-suggestions.php';
     16require dirname( __FILE__ ) . '/classes/class-bp-groups-member.php';
  • trunk/src/bp-members/bp-members-classes.php

    r9485 r9514  
    1010defined( 'ABSPATH' ) || exit;
    1111
    12 require __DIR__ . '/classes/class-bp-signup.php';
     12require dirname( __FILE__ ) . '/classes/class-bp-signup.php';
  • trunk/src/bp-messages/bp-messages-classes.php

    r9485 r9514  
    1010defined( 'ABSPATH' ) || exit;
    1111
    12 require __DIR__ . '/classes/class-bp_messages-thread.php';
    13 require __DIR__ . '/classes/class-bp-messages-message.php';
    14 require __DIR__ . '/classes/class-bp-messages-notice.php';
     12require dirname( __FILE__ ) . '/classes/class-bp_messages-thread.php';
     13require dirname( __FILE__ ) . '/classes/class-bp-messages-message.php';
     14require dirname( __FILE__ ) . '/classes/class-bp-messages-notice.php';
  • trunk/src/bp-notifications/bp-notifications-classes.php

    r9485 r9514  
    1414defined( 'ABSPATH' ) || exit;
    1515
    16 require __DIR__ . '/classes/class-bp-notifications-notification.php';
     16require dirname( __FILE__ ) . '/classes/class-bp-notifications-notification.php';
  • trunk/src/bp-xprofile/bp-xprofile-classes.php

    r9485 r9514  
    1010defined( 'ABSPATH' ) || exit;
    1111
    12 require __DIR__ . '/classes/class-bp-xprofile-group.php';
    13 require __DIR__ . '/classes/class-bp-xprofile-field.php';
    14 require __DIR__ . '/classes/class-bp-xprofile-profiledata.php';
    15 require __DIR__ . '/classes/class-bp-xprofile-field-type.php';
    16 require __DIR__ . '/classes/class-bp-xprofile-field-type-datebox.php';
    17 require __DIR__ . '/classes/class-bp-xprofile-field-type-checkbox.php';
    18 require __DIR__ . '/classes/class-bp-xprofile-field-type-radiobutton.php';
    19 require __DIR__ . '/classes/class-bp-xprofile-field-type-multiselectbox.php';
    20 require __DIR__ . '/classes/class-bp-xprofile-field-type-selectbox.php';
    21 require __DIR__ . '/classes/class-bp-xprofile-field-type-textarea.php';
    22 require __DIR__ . '/classes/class-bp-xprofile-field-type-textbox.php';
    23 require __DIR__ . '/classes/class-bp-xprofile-field-type-number.php';
    24 require __DIR__ . '/classes/class-bp-xprofile-field-type-url.php';
    25 require __DIR__ . '/classes/class-bp-xprofile-field-type-placeholder.php';
    26 require __DIR__ . '/classes/class-bp-xprofile-query.php';
     12require dirname( __FILE__ ) . '/classes/class-bp-xprofile-group.php';
     13require dirname( __FILE__ ) . '/classes/class-bp-xprofile-field.php';
     14require dirname( __FILE__ ) . '/classes/class-bp-xprofile-profiledata.php';
     15require dirname( __FILE__ ) . '/classes/class-bp-xprofile-field-type.php';
     16require dirname( __FILE__ ) . '/classes/class-bp-xprofile-field-type-datebox.php';
     17require dirname( __FILE__ ) . '/classes/class-bp-xprofile-field-type-checkbox.php';
     18require dirname( __FILE__ ) . '/classes/class-bp-xprofile-field-type-radiobutton.php';
     19require dirname( __FILE__ ) . '/classes/class-bp-xprofile-field-type-multiselectbox.php';
     20require dirname( __FILE__ ) . '/classes/class-bp-xprofile-field-type-selectbox.php';
     21require dirname( __FILE__ ) . '/classes/class-bp-xprofile-field-type-textarea.php';
     22require dirname( __FILE__ ) . '/classes/class-bp-xprofile-field-type-textbox.php';
     23require dirname( __FILE__ ) . '/classes/class-bp-xprofile-field-type-number.php';
     24require dirname( __FILE__ ) . '/classes/class-bp-xprofile-field-type-url.php';
     25require dirname( __FILE__ ) . '/classes/class-bp-xprofile-field-type-placeholder.php';
     26require dirname( __FILE__ ) . '/classes/class-bp-xprofile-query.php';
  • trunk/tests/phpunit/includes/define-constants.php

    r9316 r9514  
    2929        define( 'WP_ROOT_DIR', getenv( 'WP_DEVELOP_DIR' ) );
    3030    } else {
    31         define( 'WP_ROOT_DIR', dirname( dirname( dirname( dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) ) ) ) );
     31        define( 'WP_ROOT_DIR', dirname( dirname( dirname( dirname( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) ) ) ) ) );
    3232    }
    3333
Note: See TracChangeset for help on using the changeset viewer.