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 12, 2024
1 parent 92a8d3f commit 249b815
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 249b815

Please sign in to comment.