mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-12 23:23:49 +08:00
Fix install prechecks api url on output
This commit is contained in:
parent
121ed1885f
commit
f2f85867cd
1 changed files with 3 additions and 3 deletions
|
@ -364,7 +364,7 @@ class InstallPreChecks
|
|||
if (curl_errno($ch)) {
|
||||
$error = 'cURL error (' . curl_errno($ch) . '): ' . curl_error($ch);
|
||||
|
||||
return $this->outputError($streamVerboseHandle, $error, $logFile, $baseUrl, $result);
|
||||
return $this->outputError($streamVerboseHandle, $error, $logFile, $apiUrl, $result);
|
||||
}
|
||||
|
||||
$resultJson = json_decode($result, true);
|
||||
|
@ -372,13 +372,13 @@ class InstallPreChecks
|
|||
if (empty($resultJson)) {
|
||||
$error = $this->modStrings['LBL_CURL_JSON_ERROR'] ?? '';
|
||||
|
||||
return $this->outputError($streamVerboseHandle, $error, $logFile, $baseUrl, $result);
|
||||
return $this->outputError($streamVerboseHandle, $error, $logFile, $apiUrl, $result);
|
||||
}
|
||||
|
||||
if (empty($resultJson['data']['systemConfigs'])) {
|
||||
$error = $this->modStrings['LBL_UNABLE_TO_FIND_SYSTEM_CONFIGS'] ?? '';
|
||||
|
||||
return $this->outputError($streamVerboseHandle, $error, $logFile, $baseUrl, $result);
|
||||
return $this->outputError($streamVerboseHandle, $error, $logFile, $apiUrl, $result);
|
||||
}
|
||||
|
||||
curl_close($ch);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue