summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/update/update.fetch.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/update/update.fetch.inc')
-rw-r--r--core/modules/update/update.fetch.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/update/update.fetch.inc b/core/modules/update/update.fetch.inc
index a0d2a22e562..c8e4990d385 100644
--- a/core/modules/update/update.fetch.inc
+++ b/core/modules/update/update.fetch.inc
@@ -5,6 +5,7 @@
*/
use Drupal\Core\Hook\Attribute\ProceduralHookScanStop;
+use Drupal\Core\Extension\Requirement\RequirementSeverity;
use Drupal\update\UpdateManagerInterface;
/**
@@ -33,7 +34,7 @@ function _update_cron_notify(): void {
foreach (['core', 'contrib'] as $report_type) {
$type = 'update_' . $report_type;
if (isset($status[$type]['severity'])
- && ($status[$type]['severity'] == REQUIREMENT_ERROR || ($notify_all && $status[$type]['reason'] == UpdateManagerInterface::NOT_CURRENT))) {
+ && ($status[$type]['severity'] == RequirementSeverity::Error || ($notify_all && $status[$type]['reason'] == UpdateManagerInterface::NOT_CURRENT))) {
$params[$report_type] = $status[$type]['reason'];
}
}