Remove unnecessary elements
This commit is contained in:
parent
6d72aa71c1
commit
40c8b11ba9
@ -44,7 +44,6 @@ class Order extends Order_parent
|
|||||||
protected function getXRechnungXml(string $sFilename, string $sOrderId, int $iSelLang, bool $sendContent = false)
|
protected function getXRechnungXml(string $sFilename, string $sOrderId, int $iSelLang, bool $sendContent = false)
|
||||||
{
|
{
|
||||||
$oConfig = Registry::getConfig();
|
$oConfig = Registry::getConfig();
|
||||||
$oConfig->getConfigParam('d3xrechnung_PATH_GENERATOR');
|
|
||||||
|
|
||||||
$sPathDetails = $oConfig->getConfigParam('d3xrechnung_PATH_GENERATOR');
|
$sPathDetails = $oConfig->getConfigParam('d3xrechnung_PATH_GENERATOR');
|
||||||
$sPathDetails .= 'orderid='.$sOrderId;
|
$sPathDetails .= 'orderid='.$sOrderId;
|
||||||
@ -58,18 +57,12 @@ class Order extends Order_parent
|
|||||||
|
|
||||||
$client = new Client();
|
$client = new Client();
|
||||||
try {
|
try {
|
||||||
/*
|
|
||||||
$response = $client->request('GET', $sPathDetails,
|
|
||||||
['auth' => ['schmidt', 'tGiVLrBQik!8']]
|
|
||||||
);
|
|
||||||
*/
|
|
||||||
|
|
||||||
$response = $client->request('GET', $sPathDetails,
|
$response = $client->request('GET', $sPathDetails,
|
||||||
['auth' => [$sUser, $sPassword]]
|
['auth' => [$sUser, $sPassword]]
|
||||||
);
|
);
|
||||||
|
|
||||||
if($sendContent) {
|
if($sendContent) {
|
||||||
return $response->getBody(); // '{"id": 1420053, "name": "guzzle", ...}'
|
return $response->getBody();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user