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

    r12082 r12192  
    5959                    ( false !== strpos( $_REQUEST['action'], 'activity' ) || ( 'post_update' === $_REQUEST['action'] ) )
    6060                ) {
    61                     require $this->dir . 'ajax.php';
     61                    require bp_nouveau()->activity->dir . 'ajax.php';
    6262                }
    6363            } );
Note: See TracChangeset for help on using the changeset viewer.