From 30ce642d88a5a8eb3167efbd2480869362fbabcd Mon Sep 17 00:00:00 2001 From: yuri Date: Mon, 29 Jan 2018 13:35:33 +0200 Subject: [PATCH] reneme check new version job --- .../Jobs/{NewVersionChecker.php => CheckNewVersion.php} | 6 +++--- application/Espo/Resources/i18n/en_US/ScheduledJob.json | 2 +- .../Espo/Resources/metadata/entityDefs/ScheduledJob.json | 4 ++-- application/Espo/Services/AdminNotifications.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename application/Espo/Jobs/{NewVersionChecker.php => CheckNewVersion.php} (93%) diff --git a/application/Espo/Jobs/NewVersionChecker.php b/application/Espo/Jobs/CheckNewVersion.php similarity index 93% rename from application/Espo/Jobs/NewVersionChecker.php rename to application/Espo/Jobs/CheckNewVersion.php index c9c455054b..c67779e6f9 100644 --- a/application/Espo/Jobs/NewVersionChecker.php +++ b/application/Espo/Jobs/CheckNewVersion.php @@ -31,7 +31,7 @@ namespace Espo\Jobs; use Espo\Core\Exceptions; -class NewVersionChecker extends \Espo\Core\Jobs\Base +class CheckNewVersion extends \Espo\Core\Jobs\Base { public function run() { @@ -41,9 +41,9 @@ class NewVersionChecker extends \Espo\Core\Jobs\Base $job = $this->getEntityManager()->getEntity('Job'); $job->set(array( - 'name' => 'New Version Checker', + 'name' => 'Check for New Version (job)', 'serviceName' => 'AdminNotifications', - 'methodName' => 'newVersionChecker', + 'methodName' => 'jobCheckNewVersion', 'executeTime' => $this->getRunTime() )); diff --git a/application/Espo/Resources/i18n/en_US/ScheduledJob.json b/application/Espo/Resources/i18n/en_US/ScheduledJob.json index 4d5c9e8971..27ca26ffe0 100644 --- a/application/Espo/Resources/i18n/en_US/ScheduledJob.json +++ b/application/Espo/Resources/i18n/en_US/ScheduledJob.json @@ -19,7 +19,7 @@ "SendEmailReminders": "Send Email Reminders", "AuthTokenControl": "Auth Token Control", "SendEmailNotifications": "Send Email Notifications", - "NewVersionChecker": "New Version Checker" + "CheckNewVersion": "Check for New Version" }, "cronSetup": { "linux": "Note: Add this line to the crontab file to run Espo Scheduled Jobs:", diff --git a/application/Espo/Resources/metadata/entityDefs/ScheduledJob.json b/application/Espo/Resources/metadata/entityDefs/ScheduledJob.json index b21190808e..74db6ff151 100644 --- a/application/Espo/Resources/metadata/entityDefs/ScheduledJob.json +++ b/application/Espo/Resources/metadata/entityDefs/ScheduledJob.json @@ -78,8 +78,8 @@ "isSystem": true, "scheduling": "1 */12 * * *" }, - "NewVersionChecker": { - "name": "New Version Checker", + "CheckNewVersion": { + "name": "Check for New Version", "isSystem": true, "scheduling": "15 5 * * *" } diff --git a/application/Espo/Services/AdminNotifications.php b/application/Espo/Services/AdminNotifications.php index c6c8bf3bab..8b1bdf2c32 100644 --- a/application/Espo/Services/AdminNotifications.php +++ b/application/Espo/Services/AdminNotifications.php @@ -31,7 +31,7 @@ namespace Espo\Services; class AdminNotifications extends \Espo\Core\Services\Base { - public function newVersionChecker($data) + public function jobCheckNewVersion($data) { $config = $this->getConfig();