Skip to content

Commit

Permalink
Fixed the infinite recursion when Elgg Theme is activated
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Shcherbin committed Sep 30, 2024
1 parent 2a251fa commit e44b204
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/Elgg/IndieWeb/Entity/Events/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

class Events {
public static function createObject(\Elgg\Event $event) {
if (elgg_is_active_plugin('theme')) {
return;
}

$entity = $event->getObject();

if (!$entity instanceof \ElggObject) {
Expand Down

0 comments on commit e44b204

Please sign in to comment.