PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/Controllers/UpdateController.php +7 -3 10.1.4 → 11.1.0 View file →
@@ -3,21 +3,25 @@
3 3 namespace AcyMailing\Controllers;
4 4
5 5 use AcyMailing\Helpers\HeaderHelper;
6 6 use AcyMailing\Core\AcymController;
7 +use AcyMailing\Helpers\UpdatemeHelper;
7 8
8 9 class UpdateController extends AcymController
9 10 {
10 11 public function checkForNewVersion(): void
11 12 {
12 - $lastLicenseCheck = acym_checkVersion(true);
13 + UpdatemeHelper::getLicenseInfo(true);
14 + ob_start();
13 15 $headerHelper = new HeaderHelper();
16 + $headerHelper->displayVersionArea(true);
17 + $versionArea = ob_get_clean();
14 18
15 19 acym_sendAjaxResponse(
16 20 '',
17 21 [
18 - 'content' => $headerHelper->checkVersionArea(true),
19 - 'lastcheck' => acym_date($lastLicenseCheck, 'Y/m/d H:i'),
22 + 'content' => $versionArea,
23 + 'lastcheck' => acym_date('now', 'ACYM_DATE_FORMAT_LC2'),
20 24 ]
21 25 );
22 26 }
23 27 }