From 5eb1245e948f4c54cf1fa88a1dfe7cb4e39cead4 Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 23 Oct 2025 17:23:53 +0200 Subject: [PATCH] wait #7574 --- app/Models/Traits/PublicationSettings.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Models/Traits/PublicationSettings.php b/app/Models/Traits/PublicationSettings.php index ef550eaa5..9fe27dd5e 100644 --- a/app/Models/Traits/PublicationSettings.php +++ b/app/Models/Traits/PublicationSettings.php @@ -1705,12 +1705,15 @@ trait PublicationSettings $this->_addSettingField('hosting_loadbalancer', Checkbox::class, $this->__('Hébergement "Load balancer"')); $this->_addSettingField('hosting_loadbalancer_ignore', Textarea::class, __('Ne pas charger ces éléments via le load balancer'), ['when' => ['hosting_loadbalancer' => 1], 'hint' => __('Certains contenus doivent accéder ne doivent pas se trouver sur un autre domaine pour fonctionner')]); + foreach (self::getDownloadVersions() as $name => $downloadVersion) { $this->_addSettingField('download_' . $name, Checkbox::class, $downloadVersion['label'], [ 'default' => $downloadVersion['default'], ]); + if ($downloadVersion['install']) { $this->_addSettingField('install_' . $name, ExternalPath::class, __('Installer sur un serveur externe'), ['default' => '', 'servers_model' => FluidbookExternalInstallServer::class, 'when' => ['download_' . $name => 1]]); + $this->_addSettingField('hidden_install_'. $name, Hidden::class, '', ['default' => '0']); } } -- 2.39.5