Update core 8.3.0
This commit is contained in:
parent
da7a7918f8
commit
cd7a898e66
6144 changed files with 132297 additions and 87747 deletions
|
@ -28,7 +28,7 @@ use Drupal\Core\Url;
|
|||
* @see _update_cron_notify()
|
||||
*/
|
||||
function update_requirements($phase) {
|
||||
$requirements = array();
|
||||
$requirements = [];
|
||||
if ($phase == 'runtime') {
|
||||
if ($available = update_get_available(FALSE)) {
|
||||
module_load_include('inc', 'update', 'update.compare');
|
||||
|
@ -97,7 +97,7 @@ function update_uninstall() {
|
|||
* @see update_calculate_project_data()
|
||||
*/
|
||||
function _update_requirement_check($project, $type) {
|
||||
$requirement = array();
|
||||
$requirement = [];
|
||||
if ($type == 'core') {
|
||||
$requirement['title'] = t('Drupal core update status');
|
||||
}
|
||||
|
@ -143,17 +143,12 @@ function _update_requirement_check($project, $type) {
|
|||
$requirement_label = t('Up to date');
|
||||
}
|
||||
if ($status != UPDATE_CURRENT && $type == 'core' && isset($project['recommended'])) {
|
||||
$requirement_label .= ' ' . t('(version @version available)', array('@version' => $project['recommended']));
|
||||
$requirement_label .= ' ' . t('(version @version available)', ['@version' => $project['recommended']]);
|
||||
}
|
||||
$requirement['value'] = \Drupal::l($requirement_label, new Url(_update_manager_access() ? 'update.report_update' : 'update.status'));
|
||||
return $requirement;
|
||||
}
|
||||
|
||||
/**
|
||||
* @addtogroup updates-8.1.x
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* Rebuild the router to ensure admin/reports/updates/check has CSRF protection.
|
||||
*/
|
||||
|
@ -161,7 +156,3 @@ function update_update_8001() {
|
|||
// Empty update forces a call to drupal_flush_all_caches() which rebuilds the
|
||||
// router.
|
||||
}
|
||||
|
||||
/**
|
||||
* @} End of "addtogroup updates-8.1.x".
|
||||
*/
|
||||
|
|
Reference in a new issue