You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File /2_d_event_manager-master/system/library/d_event_manager/loader.php on Line 152 and 185
public function callback($registry, $route) {
return function($args) use($registry, &$route) {
static $model = array();
$output = null;
// Trigger the pre events
$result = $this->event->trigger('model/' . $route . '/before', array(&$route, &$args, &$output));
You can't use $this inside Anonymous function :) (PHP <5.4)
Suggested fix:
Declare a new variable for $this->event and pass it by value throw use modificator.
Cheers!
The text was updated successfully, but these errors were encountered:
File /2_d_event_manager-master/system/library/d_event_manager/loader.php on Line 152 and 185
You can't use $this inside Anonymous function :) (PHP <5.4)
Suggested fix:
Declare a new variable for $this->event and pass it by value throw use modificator.
Cheers!
The text was updated successfully, but these errors were encountered: