Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/20/2018 08:29:17 PM (8 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/groups/loader.php

    r12082 r12192  
    5656            add_action( 'admin_init', function() {
    5757                if ( defined( 'DOING_AJAX' ) && true === DOING_AJAX && 0 === strpos( $_REQUEST['action'], 'groups_' ) ) {
    58                     require $this->dir . 'ajax.php';
     58                    require bp_nouveau()->groups->dir . 'ajax.php';
    5959                }
    6060            } );
Note: See TracChangeset for help on using the changeset viewer.