From d3d2cd17ad423ac1457ff088488c9e5878acec38 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 29 Jul 2024 20:15:04 +0200 Subject: [PATCH] wip #6961 @0.5 --- app/Models/Traits/FluidbookPlayerBranches.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/Models/Traits/FluidbookPlayerBranches.php b/app/Models/Traits/FluidbookPlayerBranches.php index e659af7b9..6b3748675 100644 --- a/app/Models/Traits/FluidbookPlayerBranches.php +++ b/app/Models/Traits/FluidbookPlayerBranches.php @@ -9,7 +9,9 @@ use Cubist\Util\PHP; trait FluidbookPlayerBranches { - use ToolboxPlayerBranches; + use ToolboxPlayerBranches { + updateAllBranches as parentUpdateAllBranches; + } protected static $reposName = 'fluidbook-html5'; @@ -17,4 +19,11 @@ trait FluidbookPlayerBranches { return Files::mkdir(resource_path('fluidbookpublication/player')); } + + protected function updateAllBranches() + { + $res = $this->parentUpdateAllBranches(); + copy(static::getPlayerBaseDirectory() . '/local/animscode/js/libs/fluidbook/fluidbook.links.animations.js', resource_path('linkeditor/js/fluidbook.links.animations.js')); + return $res; + } } -- 2.39.5