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

    r11899 r12192  
    5353            add_action( 'admin_init', function() {
    5454                if ( defined( 'DOING_AJAX' ) && true === DOING_AJAX && 0 === strpos( $_REQUEST['action'], 'blogs_' ) ) {
    55                     require $this->dir . 'ajax.php';
     55                    require bp_nouveau()->blogs->dir . 'ajax.php';
    5656                }
    5757            } );
Note: See TracChangeset for help on using the changeset viewer.