Mercurial > hg > isophonics-drupal-site
diff core/modules/system/src/CronController.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/modules/system/src/CronController.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/system/src/CronController.php Thu Feb 28 13:21:36 2019 +0000 @@ -36,7 +36,6 @@ return new static($container->get('cron')); } - /** * Run Cron once. * @@ -58,10 +57,10 @@ */ public function runManually() { if ($this->cron->run()) { - drupal_set_message($this->t('Cron ran successfully.')); + $this->messenger()->addStatus($this->t('Cron ran successfully.')); } else { - drupal_set_message($this->t('Cron run failed.'), 'error'); + $this->messenger()->addError($this->t('Cron run failed.')); } return $this->redirect('system.status');