Skip to content

Commit a12abcc

Browse files
committed
fixup! feat: emit preloadCollection event in DAV
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
1 parent efdfccb commit a12abcc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/dav/lib/Connector/Sabre/PropFindPreloadNotifyPlugin.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@ public function initialize(Server $server): void {
3737
* re-fetching.
3838
*/
3939
public function collectionPreloadNotifier(PropFind $propFind, INode $node): bool {
40-
$arguments = \func_get_args();
41-
if (!$this->shouldPreload(...$arguments)) {
40+
if (!$this->shouldPreload($propFind, $node)) {
4241
return true;
4342
}
4443

45-
return $this->server->emit('preloadCollection', $arguments);
44+
return $this->server->emit('preloadCollection', [$propFind, $node]);
4645
}
4746

4847
private function shouldPreload(

0 commit comments

Comments
 (0)