From aabb2588e996ee3dcbc994baed1bc5b44dd1660a Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 7 Jul 2023 10:38:33 +0200 Subject: [PATCH] wait #6114 --- app/Fluidbook/Compiler/Sound.php | 22 ++++++++++++++++++++++ app/helpers.php | 12 ++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 app/Fluidbook/Compiler/Sound.php create mode 100644 app/helpers.php diff --git a/app/Fluidbook/Compiler/Sound.php b/app/Fluidbook/Compiler/Sound.php new file mode 100644 index 000000000..f0af0efcd --- /dev/null +++ b/app/Fluidbook/Compiler/Sound.php @@ -0,0 +1,22 @@ +fluidbookSettings->soundTheme); + + if (!$this->fluidbookSettings->soundTheme || $this->fluidbookSettings->soundTheme == 'none' || !file_exists($dir)) { + $this->config->set('soundTheme', 'none'); + return; + } + $this->config->set('simpleSoundTheme', file_exists($dir . '/flip.mp3')); + $this->vdir->copyDirectory($dir, 'data/sounds'); + } +} diff --git a/app/helpers.php b/app/helpers.php new file mode 100644 index 000000000..6d99ebcfa --- /dev/null +++ b/app/helpers.php @@ -0,0 +1,12 @@ +id, $devs)) { + return; + } + return call_user_func_array('dd', func_get_args()); + } +} -- 2.39.5