From e44b204d959907d435ef49f2d499c99a74e3e5ac Mon Sep 17 00:00:00 2001 From: Nikolai Shcherbin Date: Mon, 30 Sep 2024 12:57:51 +0300 Subject: [PATCH] Fixed the infinite recursion when Elgg Theme is activated --- classes/Elgg/IndieWeb/Entity/Events/Events.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/Elgg/IndieWeb/Entity/Events/Events.php b/classes/Elgg/IndieWeb/Entity/Events/Events.php index 4add385..45bed85 100644 --- a/classes/Elgg/IndieWeb/Entity/Events/Events.php +++ b/classes/Elgg/IndieWeb/Entity/Events/Events.php @@ -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) {