updated core to 8.6.1 via composer
This commit is contained in:
@@ -42,7 +42,7 @@ function _batch_page(Request $request) {
|
||||
if (!$batch) {
|
||||
$batch = \Drupal::service('batch.storage')->load($request_id);
|
||||
if (!$batch) {
|
||||
drupal_set_message(t('No active batch.'), 'error');
|
||||
\Drupal::messenger()->addError(t('No active batch.'));
|
||||
return new RedirectResponse(\Drupal::url('<front>', [], ['absolute' => TRUE]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user