Skip to content

Commit

Permalink
Add missing parameter to user function call (#7)
Browse files Browse the repository at this point in the history
* Add missing parameter to user function call

* Add missing parameter to user function call

* Add missing parameter to user function call
  • Loading branch information
cliffparnitzky committed Mar 2, 2023
1 parent e762841 commit 3832c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/PaginationUtil.php
Expand Up @@ -157,7 +157,7 @@ public function paginateHtmlText(string $html, int $limit, int $currentPage, arr
}

foreach ($result as $page => $parts) {
if (true === \call_user_func($options['removePageElementsCallback'], $result, $currentPage, $page)) {
if (true === \call_user_func($options['removePageElementsCallback'], $result, $currentPage, $page, $elements)) {
foreach ($parts as $part) {
$part['element']->remove();
}
Expand Down

0 comments on commit 3832c48

Please sign in to comment.