From 188b7957130c9d3ee033eb851ce8483d6bd68959 Mon Sep 17 00:00:00 2001 From: Jeroen Dalsem Date: Tue, 6 Aug 2019 14:41:20 +0200 Subject: [PATCH] chore: replaced deprecated ignore_access functions --- start.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/start.php b/start.php index 18df47b..728dcb0 100644 --- a/start.php +++ b/start.php @@ -110,9 +110,9 @@ function entity_view_counter_get_view_count(ElggEntity $entity, $exact = false) $count = $entity->countAnnotations(ENTITY_VIEW_COUNTER_ANNOTATION_NAME); // store annotation count for future usage from metadata - $ia = elgg_set_ignore_access(true); - $entity->entity_view_count = $count; - elgg_set_ignore_access($ia); + elgg_call(ELGG_IGNORE_ACCESS, function() use ($entity, $count) { + $entity->entity_view_count = $count; + }); } $count = (int) $count;