Skip to content

Commit

Permalink
[TASK] Use direct callback function (speed improvement)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschaufi committed Nov 18, 2024
1 parent d81702f commit 5a31f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/LinkViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ protected function getLinkToNewsItem(

foreach ($detailPidDeterminationMethods as $determinationMethod) {
if ($callback = $this->detailPidDeterminationCallbacks[$determinationMethod]) {
if ($detailPid = call_user_func([$this, $callback], $tsSettings, $newsItem)) {
if ($detailPid = $this->$callback($tsSettings, $newsItem)) {
break;
}
}
Expand Down

0 comments on commit 5a31f5b

Please sign in to comment.