New version checker changes

This commit is contained in:
Taras Machyshyn
2017-12-15 11:17:58 +02:00
parent f289072486
commit 43559a0158
3 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ class NewVersionChecker extends \Espo\Core\Jobs\Base
{
public function run()
{
if (!$this->getConfig()->get('adminNotifications') || $this->getConfig()->get('adminNotificationNewVersionCheckerDisabled')) {
if (!$this->getConfig()->get('adminNotifications') || !$this->getConfig()->get('adminNotificationsNewVersion')) {
return true;
}

View File

@@ -171,7 +171,7 @@
"selectExtensionPackage": "Select extension package",
"extensionInstalled": "Extension {name} {version} has been installed.",
"installExtension": "Extension {name} {version} is ready for an installation.",
"cronIsNotConfigured": "Scheduled jobs are not running. Please follow the <a target=\"_blank\" href=\"https://www.espocrm.com/documentation/administration/server-configuration/#user-content-setup-a-crontab\">instructions</a> to setup cron job.",
"cronIsNotConfigured": "Scheduled jobs are not running. Hence inbound emails, notifications and reminders are not working. Please follow the <a target=\"_blank\" href=\"https://www.espocrm.com/documentation/administration/server-configuration/#user-content-setup-a-crontab\">instructions</a> to setup cron job.",
"newVersionIsAvailable": "New EspoCRM version {latestVersion} is available.",
"newExtensionVersionIsAvailable": "New release {latestVersion} of {extensionName} is available."
},

View File

@@ -35,7 +35,7 @@ class AdminNotifications extends \Espo\Core\Services\Base
{
$config = $this->getConfig();
if (!$config->get('adminNotifications') || $config->get('adminNotificationNewVersionCheckerDisabled')) {
if (!$config->get('adminNotifications') || !$config->get('adminNotificationsNewVersion')) {
return true;
}