]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6915 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 May 2024 12:02:41 +0000 (14:02 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 May 2024 12:02:41 +0000 (14:02 +0200)
app/Elearning/QuizCompiler.php
app/Elearning/QuizCompiler/L10N.php

index 9fd0603a551f0e8e309f9cc00a8ca838b2eccc27..b53ace60a2974850938da5d5533368a23b15b1ca 100644 (file)
@@ -316,8 +316,8 @@ class QuizCompiler extends Base
 
         $mix = 'const mix = require("laravel-mix");';
         foreach ($this->mixDirectories as $from => $to) {
-            if (!file_exists($this->compilePath ."/". $from)) {
-                Log::debug('skip ' . $this->compilePath .'/'. $from);
+            if (!file_exists($this->compilePath . "/" . $from)) {
+                Log::debug('skip ' . $this->compilePath . '/' . $from);
                 continue;
             }
             $mix .= 'mix.copyDirectory("' . $from . '","' . $to . '");';
index c440591622623fc598be3fc7e9709bf08dfe7df2..cf82850ae077188f7748c801252e167bb0f90dc7 100644 (file)
@@ -13,6 +13,7 @@ trait L10N
 
     protected function getTranslations()
     {
+
         $res = ElearningTranslate::getLocaleTranslations($this->data->translation, true);
         if (is_array($this->data->translations)) {
             $res = array_merge($res, $this->data->translations);