Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/20/2018 08:29:17 PM (7 years ago)
Author:
boonebgorges
Message:

Avoid the use of $this inside closures in Nouveau AJAX handlers.

This construction is not compatible with PHP 5.3.

Props r-a-y.
Fixes #7925.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/friends/loader.php

    r12082 r12192  
    5151            add_action( 'admin_init', function() {
    5252                if ( defined( 'DOING_AJAX' ) && true === DOING_AJAX && 0 === strpos( $_REQUEST['action'], 'friends_' ) ) {
    53                     require $this->dir . 'ajax.php';
     53                    require bp_nouveau()->friends->dir . 'ajax.php';
    5454                }
    5555            } );
Note: See TracChangeset for help on using the changeset viewer.