Skip to content

Commit

Permalink
getItemFunc erweitert um $instance data
Browse files Browse the repository at this point in the history
  • Loading branch information
dergel committed Jun 28, 2024
1 parent 087e57b commit 9690d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/rest/lib/rest/route.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function handleRequest(array $paths, array $get)
array_merge($paths, [$instance->getId()]),
);
if (is_callable($this->getItemFunc)) {
$instance_data = call_user_func($this->getItemFunc, $this, $instance_data);
$instance_data = call_user_func($this->getItemFunc, $this, $instance_data, $instance);
}

$data[] = $instance_data;
Expand Down

0 comments on commit 9690d06

Please sign in to comment.