diff --git a/src/Services/HeadlessH5PService.php b/src/Services/HeadlessH5PService.php index 732b7ba2..688f1b81 100644 --- a/src/Services/HeadlessH5PService.php +++ b/src/Services/HeadlessH5PService.php @@ -454,7 +454,7 @@ public function getContentSettings($id, ?string $token = null): array //'resizeCode' => '', //'url' => route('h5p.embed', ['id' => $content['id']]), 'title' => $content['title'], - 'displayOptions' => $this->getCore()->getDisplayOptionsForView(0, $content['id']), + 'displayOptions' => $this->getCore()->getDisplayOptionsForView(!config('hh5p.h5p_show_display_option'), $content['id']), 'contentUserData' => [ 0 => [ 'state' => '{}', // TODO this should be retrived @@ -538,7 +538,7 @@ public function getSettingsForContent($id): array //'resizeCode' => '', //'url' => route('h5p.embed', ['id' => $content['id']]), 'title' => $content['title'], - 'displayOptions' => $this->getCore()->getDisplayOptionsForView(0, $content['id']), + 'displayOptions' => $this->getCore()->getDisplayOptionsForView(!config('hh5p.h5p_show_display_option'), $content['id']), 'contentUserData' => [ 0 => [ 'state' => '{}', // TODO get user actual state