From 8c8e850d9a7c8871bd8ca8feb15b5af902748122 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 7 Apr 2025 18:46:18 +0200 Subject: [PATCH] #7454 --- src/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index dc9a557..ffec374 100644 --- a/src/Client.php +++ b/src/Client.php @@ -51,9 +51,9 @@ class Client return $response->getBody()->getContents(); } - public function createFluidbook(\SplFileInfo $file, $base, $title, $installServer, $installPath): string + public function createFluidbook(\SplFileInfo $file, $base, $title, $installServer, $installPath, $attributes = []): string { - $data = ['base' => $base, 'title' => $title, 'export[server]' => $installServer, 'export[path]' => $installPath]; + $data = array_merge($attributes, ['base' => $base, 'title' => $title, 'export[server]' => $installServer, 'export[path]' => $installPath]); $multipart = []; foreach ($data as $k => $v) { $multipart[] = ['name' => $k, 'contents' => $v]; -- 2.39.5