projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website]
/
web
/
core
/
modules
/
system
/
src
/
CronController.php
diff --git
a/web/core/modules/system/src/CronController.php
b/web/core/modules/system/src/CronController.php
index ec1156955f3b511474462bc73538454c77920ea9..2626bf3a05915858341cc669e6a0c546951ea70e 100644
(file)
--- a/
web/core/modules/system/src/CronController.php
+++ b/
web/core/modules/system/src/CronController.php
@@
-36,7
+36,6
@@
class CronController extends ControllerBase {
return new static($container->get('cron'));
}
return new static($container->get('cron'));
}
-
/**
* Run Cron once.
*
/**
* Run Cron once.
*
@@
-58,10
+57,10
@@
class CronController extends ControllerBase {
*/
public function runManually() {
if ($this->cron->run()) {
*/
public function runManually() {
if ($this->cron->run()) {
-
drupal_set_message
($this->t('Cron ran successfully.'));
+
$this->messenger()->addStatus
($this->t('Cron ran successfully.'));
}
else {
}
else {
-
drupal_set_message($this->t('Cron run failed.'), 'error'
);
+
$this->messenger()->addError($this->t('Cron run failed.')
);
}
return $this->redirect('system.status');
}
return $this->redirect('system.status');