From 5d2be11c3f316a1956dce9aa65c13e71e896bd6f Mon Sep 17 00:00:00 2001 From: trendschau Date: Tue, 5 Mar 2024 21:16:25 +0100 Subject: [PATCH] v2.2.2 fixcall to old license model --- system/typemill/Controllers/ControllerApiSystemLicense.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/typemill/Controllers/ControllerApiSystemLicense.php b/system/typemill/Controllers/ControllerApiSystemLicense.php index 4d14c74..358f32e 100644 --- a/system/typemill/Controllers/ControllerApiSystemLicense.php +++ b/system/typemill/Controllers/ControllerApiSystemLicense.php @@ -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);