Skip to content

Commit

Permalink
fixed: correctly pass widget entity in lazy loading hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Jun 7, 2021
1 parent d1db719 commit 55a0d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/ColdTrick/WidgetManager/WidgetsSettingsConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,6 @@ public function showLazyLoaded(\WidgetManagerWidget $widget, array $layout_info
return false;
};

return (bool) elgg_trigger_plugin_hook('lazy_load', 'widget_manager', ['entity' => $this, 'layout_info' => $layout_info], $detect_lazy_loading());
return (bool) elgg_trigger_plugin_hook('lazy_load', 'widget_manager', ['entity' => $widget, 'layout_info' => $layout_info], $detect_lazy_loading());
}
}

0 comments on commit 55a0d08

Please sign in to comment.