]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7175
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 5 Nov 2024 16:57:26 +0000 (17:57 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 5 Nov 2024 16:57:26 +0000 (17:57 +0100)
app/Models/FluidbookExternalInstallServer.php

index edd4f7bbd0f61f50141786d8d2c29638a1486ad8..7187d58a61e45ada448ec009ac36d35335bb32db 100644 (file)
@@ -142,7 +142,7 @@ class FluidbookExternalInstallServer extends ExternalServer
 
     public function getProtocols()
     {
-        return ['FTP' => __('FTP non sécurisé'), 'SFTP' => 'SFTP', 'hosting' => 'Hosting', 'hosting2' => 'Hosting #2', 'ushosting' => 'US Hosting', 'S3' => __('Amazon S3').' ('.__('et solutions compatibles').')'];
+        return ['FTP' => __('FTP non sécurisé'), 'SFTP' => 'SFTP', 'hosting' => 'Hosting', 'hosting2' => 'Hosting #2', 'ushosting' => 'US Hosting', 'S3' => __('Amazon S3') . ' (' . __('et solutions compatibles') . ')'];
     }
 
     protected static function getHostingProtocols()
@@ -237,6 +237,8 @@ class FluidbookExternalInstallServer extends ExternalServer
                 $res['message'] = __("La configuration des sous-domaines suivants est incorrecte : :subdomains", ["subdomains" => $check['subdomains']]);
                 $res['message'] .= "</br>";
                 $res['message'] .= __("Modifier la zone DNS afin que [ :subdomains ] pointe vers le serveur (CNAME :hostingname ou A :ip)", ["subdomains" => $check['subdomains'], "hostingname" => $check['host'], "ip" => $check['ip']]);
+            } else if (is_array($check)) {
+                $res = $check;
             } else {
                 $res['message'] = static::messages()[$check];
             }