$showTextIfNotEmail = false;
$actions = [];
if ($this->action === 'download' || $this->action === 'scormcloud') {
- $actions = ['Télécharger' => $url];
+ $actions = [__('Télécharger') => $url];
$res[] = $url;
if ($this->action === 'scormcloud') {
$actions[__('Tester sur SCORM Cloud')] = $scormURL;
$res[] = $url;
} catch (\Exception $e) {
-
+ Log::error($e);
+ $text .= "\n\n" . __('Une erreur s\'est produite lors de l\'envoi sur SCORM Cloud (App ID :appid) : :error', ['error' => $e->getMessage(), 'appid' => env('SCORM_CLOUD_APP_ID')]);
+ $showTextIfNotEmail = true;
}
- $text = __('Une erreur s\'est produite lors de l\'envoi sur SCORM Cloud (App ID :appid) : :error', ['error' => $e->getMessage(), 'appid' => env('SCORM_CLOUD_APP_ID')]);
}
} else if ($this->action === 'install') {
$s = $this->entry->install_online;
}
while ($jobResult->getStatus() == V2\Model\ImportJobResultSchema::STATUS_RUNNING) {
sleep(1);
- $jobResult = $courseAPI->getImportJobStatus($jobId->getResult());
+ try {
+ $jobResult = $courseAPI->getImportJobStatus($jobId->getResult());
+ } catch (\Exception $e) {
+ break;
+ }
}
if ($jobResult->getStatus() == V2\Model\ImportJobResultSchema::STATUS_ERROR) {
:
else
sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o cache=no -o sshfs_sync -o uid=1002 -o gid=33 -o allow_other root@godzilla.cubedesigners.com:/data/fluidbook/docs /application/protected/fluidbookpublication/docs
+ #sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o cache=no -o sshfs_sync -o uid=1002 -o gid=33 -o allow_other root@dracula.cubedesigners.com:/data/fluidbook/docs /application/protected/fluidbookpublication/docs
fi
# Launch PHP
RUN apt update
RUN apt -y --no-install-recommends install \
- unzip \
git \
php$phpversion-apcu \
php$phpversion-cli \
php$phpversion-fpm \
less nano wget nodejs
-RUN apt -y --no-install-recommends install nodejs sudo openssh-server rsyslog cron mariadb-client
+RUN apt -y --no-install-recommends install nodejs sudo openssh-server rsyslog cron mariadb-client zip unzip imagemagick
RUN apt -y --no-install-recommends install locales
RUN sed -i '/$locale.UTF-8/s/^# //g' /etc/locale.gen && \