Update to Drupal 8.0.0-beta15. For more information, see: https://www.drupal.org/node/2563023
This commit is contained in:
parent
2720a9ec4b
commit
f3791f1da3
1898 changed files with 54300 additions and 11481 deletions
|
@ -107,8 +107,17 @@ function _update_requirement_check($project, $type) {
|
|||
$status = $project['status'];
|
||||
if ($status != UPDATE_CURRENT) {
|
||||
$requirement['reason'] = $status;
|
||||
$requirement['description'] = _update_message_text($type, $status, TRUE);
|
||||
$requirement['severity'] = REQUIREMENT_ERROR;
|
||||
// Append the available updates link to the message from
|
||||
// _update_message_text(), and format the two translated strings together in
|
||||
// a single paragraph.
|
||||
$requirement['description'][] = ['#markup' => _update_message_text($type, $status)];
|
||||
if (_update_manager_access()) {
|
||||
$requirement['description'][] = ['#prefix' => ' ', '#markup' => t('See the <a href="@available_updates">available updates</a> page for more information and to install your missing updates.', ['@available_updates' => \Drupal::url('update.report_update')])];
|
||||
}
|
||||
else {
|
||||
$requirement['description'][] = ['#prefix' => ' ', '#markup' => t('See the <a href="@available_updates">available updates</a> page for more information.', ['@available_updates' => \Drupal::url('update.status')])];
|
||||
}
|
||||
}
|
||||
switch ($status) {
|
||||
case UPDATE_NOT_SECURE:
|
||||
|
@ -136,6 +145,6 @@ function _update_requirement_check($project, $type) {
|
|||
if ($status != UPDATE_CURRENT && $type == 'core' && isset($project['recommended'])) {
|
||||
$requirement_label .= ' ' . t('(version @version available)', array('@version' => $project['recommended']));
|
||||
}
|
||||
$requirement['value'] = \Drupal::l($requirement_label, new Url(update_manager_access() ? 'update.report_update' : 'update.status'));
|
||||
$requirement['value'] = \Drupal::l($requirement_label, new Url(_update_manager_access() ? 'update.report_update' : 'update.status'));
|
||||
return $requirement;
|
||||
}
|
||||
|
|
Reference in a new issue