diff --git a/core/modules/system/system.install b/core/modules/system/system.install
index f38af8a..a5138c7 100644
--- a/core/modules/system/system.install
+++ b/core/modules/system/system.install
@@ -434,24 +434,22 @@ function system_requirements($phase) {
}
// Set summary and description based on values determined above.
- $summary = t('Last run !time ago', array('!time' => \Drupal::service('date.formatter')->formatTimeDiffSince($cron_last)));
+ $summary = t('Last run @time ago', array('@time' => \Drupal::service('date.formatter')->formatTimeDiffSince($cron_last)));
$description = '';
if ($severity != REQUIREMENT_INFO) {
$description = t('Cron has not run recently.') . ' ' . $help;
}
$description .= ' ' . t('You can run cron manually.', array('@cron' => \Drupal::url('system.run_cron')));
- $description .= '
' . t('To run cron from outside the site, go to !cron', array('!cron' => \Drupal::url('system.cron', array('key' => \Drupal::state()->get('system.cron_key'), array('absolute' => TRUE)))));
+ $description .= '
' . t('To run cron from outside the site, go to !cron', array('@cron' => \Drupal::url('system.cron', array('key' => \Drupal::state()->get('system.cron_key'), array('absolute' => TRUE)))));
$requirements['cron'] = array(
'title' => t('Cron maintenance tasks'),
'severity' => $severity,
'value' => $summary,
- // @todo This string is concatenated from t() calls, safe drupal_render()
- // output, whitespace, and
tags, so is safe. However, as a best
- // practice, we should not use SafeMarkup::set() around a variable. Fix
- // in: https://www.drupal.org/node/2296929.
- 'description' => SafeMarkup::set($description),
+ // This string is concatenated from t() calls, drupal_render() output,
+ // whitespace, and
tags so we pass it through as markup.
+ 'description' => ['#markup' => $description],
);
}
if ($phase != 'install') {