From: Vincent Vanwaelscappel Date: Tue, 5 Nov 2024 16:57:26 +0000 (+0100) Subject: wip #7175 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=469202980dc13eaa3e2ef59867cc2a353c0e2bda;p=fluidbook-toolbox.git wip #7175 --- diff --git a/app/Models/FluidbookExternalInstallServer.php b/app/Models/FluidbookExternalInstallServer.php index edd4f7bbd..7187d58a6 100644 --- a/app/Models/FluidbookExternalInstallServer.php +++ b/app/Models/FluidbookExternalInstallServer.php @@ -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'] .= "
"; $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]; }