Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/update/update.authorize.inc @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
251 $results['tasks'][] = t('Your modules have been downloaded and updated.'); | 251 $results['tasks'][] = t('Your modules have been downloaded and updated.'); |
252 $results['tasks'][] = [ | 252 $results['tasks'][] = [ |
253 '#type' => 'link', | 253 '#type' => 'link', |
254 '#url' => $url, | 254 '#url' => $url, |
255 '#title' => t('Run database updates'), | 255 '#title' => t('Run database updates'), |
256 // Since this is being called outsite of the primary front controller, | 256 // Since this is being called outside of the primary front controller, |
257 // the base_url needs to be set explicitly to ensure that links are | 257 // the base_url needs to be set explicitly to ensure that links are |
258 // relative to the site root. | 258 // relative to the site root. |
259 // @todo Simplify with https://www.drupal.org/node/2548095 | 259 // @todo Simplify with https://www.drupal.org/node/2548095 |
260 '#options' => [ | 260 '#options' => [ |
261 'absolute' => TRUE, | 261 'absolute' => TRUE, |
262 'base_url' => $GLOBALS['base_url'], | 262 'base_url' => $GLOBALS['base_url'], |
263 ], | 263 ], |
264 '#access' => $url->access(\Drupal::currentUser()) | 264 '#access' => $url->access(\Drupal::currentUser()), |
265 ]; | 265 ]; |
266 | 266 |
267 // Unset the variable since it is no longer needed. | 267 // Unset the variable since it is no longer needed. |
268 unset($_SESSION['maintenance_mode']); | 268 unset($_SESSION['maintenance_mode']); |
269 | 269 |