Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713
This commit is contained in:
parent
c0a0d5a94c
commit
9eae24d844
669 changed files with 3873 additions and 1553 deletions
|
@ -247,10 +247,11 @@ function update_authorize_update_batch_finished($success, $results) {
|
|||
}
|
||||
// Since we're doing an update of existing code, always add a task for
|
||||
// running update.php.
|
||||
$url = Url::fromRoute('system.db_update');
|
||||
$results['tasks'][] = t('Your modules have been downloaded and updated.');
|
||||
$results['tasks'][] = [
|
||||
'#type' => 'link',
|
||||
'#url' => Url::fromRoute('system.db_update'),
|
||||
'#url' => $url,
|
||||
'#title' => t('Run database updates'),
|
||||
// Since this is being called outsite of the primary front controller,
|
||||
// the base_url needs to be set explicitly to ensure that links are
|
||||
|
@ -260,6 +261,7 @@ function update_authorize_update_batch_finished($success, $results) {
|
|||
'absolute' => TRUE,
|
||||
'base_url' => $GLOBALS['base_url'],
|
||||
],
|
||||
'#access' => $url->access(\Drupal::currentUser())
|
||||
];
|
||||
|
||||
// Unset the variable since it is no longer needed.
|
||||
|
|
Reference in a new issue