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/DashboardController.php +5 -9 10.10.2 → 11.1.0 View file →
@@ -43,26 +43,22 @@
43 43 }
44 44
45 45 $splashJson = acym_fileGetContent(ACYM_NEW_FEATURES_SPLASHSCREEN_JSON);
46 46 $version = json_decode($splashJson);
47 - if (version_compare($this->config->get('previous_version', '10.10.2'), $version->max_version, '>=')) {
48 - @unlink(ACYM_NEW_FEATURES_SPLASHSCREEN_JSON);
47 + if (version_compare($this->config->get('previous_version', '11.1.0'), $version->max_version, '>=')) {
48 + acym_deleteFile(ACYM_NEW_FEATURES_SPLASHSCREEN_JSON);
49 49 $this->listing();
50 50
51 51 return;
52 52 }
53 53
54 - ob_start();
55 - include ACYM_NEW_FEATURES_SPLASHSCREEN;
56 - $data = [
57 - 'content' => ob_get_clean(),
58 - ];
59 -
60 - if (!@unlink(ACYM_NEW_FEATURES_SPLASHSCREEN_JSON)) {
54 + if (!acym_deleteFile(ACYM_NEW_FEATURES_SPLASHSCREEN_JSON)) {
61 55 $this->listing();
62 56
63 57 return;
64 58 }
59 +
60 + $data['splashJson'] = $version;
65 61
66 62 acym_setVar('layout', 'features');
67 63
68 64 parent::display($data);