From: Vincent Vanwaelscappel Date: Fri, 13 Feb 2026 11:24:42 +0000 (+0100) Subject: wip #8000 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d0be9459634d86bef3d957662b217f9b7dc37753;p=fluidbook_tools.git wip #8000 @1 --- diff --git a/src/Compiler/Compiler.php b/src/Compiler/Compiler.php index 7c89c95..5bdd6ac 100644 --- a/src/Compiler/Compiler.php +++ b/src/Compiler/Compiler.php @@ -424,7 +424,7 @@ class Compiler implements ShouldQueue, ShouldBeUnique, CompilerInterface { // TODO: Implement getLinkAlternativeText() method. } - public function shortenURL($url) + public function shortenURL($url, $special = false) { return $url; } diff --git a/src/Compiler/CompilerInterface.php b/src/Compiler/CompilerInterface.php index 8aac38a..523c9e6 100644 --- a/src/Compiler/CompilerInterface.php +++ b/src/Compiler/CompilerInterface.php @@ -85,7 +85,7 @@ interface CompilerInterface public function getLinkAlternativeText($link); - public function shortenURL($url); + public function shortenURL($url, $special = false); public function addSearchWord($to,$page, $array); } diff --git a/src/Compiler/DummyCompiler.php b/src/Compiler/DummyCompiler.php index 5e48271..3ac98d4 100644 --- a/src/Compiler/DummyCompiler.php +++ b/src/Compiler/DummyCompiler.php @@ -212,7 +212,7 @@ class DummyCompiler implements CompilerInterface // TODO: Implement getLinkAlternativeText() method. } - public function shortenURL($url) + public function shortenURL($url, $special = false) { return $url; } diff --git a/src/Links/WebVideoLink.php b/src/Links/WebVideoLink.php index b9c8171..4b93c3b 100644 --- a/src/Links/WebVideoLink.php +++ b/src/Links/WebVideoLink.php @@ -59,7 +59,7 @@ class WebVideoLink extends VideoLink 'sources' => [ [ 'type' => 'video/youtube', - 'src' => $compiler->shortenURL('https://www.youtube.com/watch?v=' . $data->to) + 'src' => $compiler->shortenURL('https://www.youtube.com/watch?v=' . $data->to, true) ] ], "youtube" => ["loop" => $data->video_loop, 'showinfo' => '0', 'cc_load_policy' => '1', 'ytControls' => '1'],