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()
$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];
}