Commit 36cd5248 authored by Benni Mack's avatar Benni Mack
Browse files

[BUGFIX] Use getenv() to ensure the standalone call also works

parent 0bbe6b29
Pipeline #9074 passed with stages
in 9 minutes and 37 seconds
......@@ -25,7 +25,7 @@ error_reporting(E_ALL ^ E_NOTICE);
$serviceLocation = 'https://' . $_SERVER['HTTP_HOST'] . '/ter';
if (\TYPO3\CMS\Core\Core\Environment::getContext() === 'Production') {
if (getenv('TYPO3_CONTEXT') === 'Production') {
$wsdlFileName = 'tx_ter.wsdl';
} else {
$wsdlFileName = 'tx_ter.stage.wsdl';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment