Skip to content

Commit

Permalink
chore: replaced deprecated ignore_access functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Aug 6, 2019
1 parent 51f8164 commit 188b795
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions start.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 188b795

Please sign in to comment.