From 469202980dc13eaa3e2ef59867cc2a353c0e2bda Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 5 Nov 2024 17:57:26 +0100 Subject: [PATCH] wip #7175 --- app/Models/FluidbookExternalInstallServer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; } -- 2.39.5