From e0e8f6bc716d2fbf387fbe884daa1a11b64c8899 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 15 Dec 2023 12:17:32 +0100 Subject: [PATCH] wait #6551 @0.25 --- app/Elearning/QuizCompiler.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Elearning/QuizCompiler.php b/app/Elearning/QuizCompiler.php index 8875ba188..0f52ad89a 100644 --- a/app/Elearning/QuizCompiler.php +++ b/app/Elearning/QuizCompiler.php @@ -13,6 +13,7 @@ use App\Jobs\Base; use App\Models\Quiz; use App\Models\QuizTheme; use App\Models\Signature; +use App\Models\Traits\QuizBranches; use Cubist\Scorm\Manifest; use Cubist\Scorm\Version; use Cubist\Util\CommandLine\Npx; @@ -30,6 +31,8 @@ class QuizCompiler extends Base use L10N; use Credits; + use QuizBranches; + /** * @var Quiz */ @@ -289,7 +292,11 @@ class QuizCompiler extends Base default: list($branch, $dir) = explode('|', $this->quiz->dev_version); } - return resource_path('quiz/player/' . ($dir === 'local' ? 'local' : 'branches') . '/' . $branch); + $d = ($dir === 'local' ? 'local' : 'branches'); + if ($d === 'branches') { + $this->updateAllBranches(); + } + return resource_path('quiz/player/' . $d . '/' . $branch); } -- 2.39.5