1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-05 21:57:31 +02:00

v2.2.2 fixcall to old license model

This commit is contained in:
trendschau
2024-03-05 21:16:25 +01:00
parent a2eb9db6eb
commit 5d2be11c3f

View File

@@ -49,9 +49,12 @@ class ControllerApiSystemLicense extends Controller
return $response->withHeader('Content-Type', 'application/json')->withStatus(400);
}
$licensedata = $license->getLicenseFile();
unset($licensedata['signature']);
$response->getBody()->write(json_encode([
'message' => Translations::translate('Licence has been stored'),
'licensedata' => $license->getLicenseData($this->c->get('urlinfo'))
'licensedata' => $licensedata
]));
return $response->withHeader('Content-Type', 'application/json')->withStatus(200);