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/messages/loader.php

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