Update core 8.3.0
This commit is contained in:
parent
da7a7918f8
commit
cd7a898e66
6144 changed files with 132297 additions and 87747 deletions
|
@ -12,25 +12,19 @@ use Drupal\Core\StringTranslation\TranslatableMarkup;
|
|||
* Implements hook_requirements().
|
||||
*/
|
||||
function rest_requirements($phase) {
|
||||
$requirements = array();
|
||||
$requirements = [];
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.6.0', '>=') && version_compare(PHP_VERSION, '7', '<') && ini_get('always_populate_raw_post_data') != -1) {
|
||||
$requirements['always_populate_raw_post_data'] = array(
|
||||
$requirements['always_populate_raw_post_data'] = [
|
||||
'title' => t('always_populate_raw_post_data PHP setting'),
|
||||
'value' => t('Not set to -1.'),
|
||||
'severity' => REQUIREMENT_ERROR,
|
||||
'description' => t('The always_populate_raw_post_data PHP setting should be set to -1 in PHP version 5.6. Please check the <a href="https://php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data">PHP manual</a> for information on how to correct this.'),
|
||||
);
|
||||
];
|
||||
}
|
||||
return $requirements;
|
||||
}
|
||||
|
||||
/**
|
||||
* @defgroup updates-8.1.x-to-8.2.x
|
||||
* @{
|
||||
* Update functions from 8.1.x to 8.2.x.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Install the REST config entity type and fix old settings-based config.
|
||||
*
|
||||
|
@ -90,7 +84,3 @@ function rest_update_8203() {
|
|||
$rest_settings->set('bc_entity_resource_permissions', TRUE)
|
||||
->save(TRUE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @} End of "defgroup updates-8.1.x-to-8.2.x".
|
||||
*/
|
||||
|
|
Reference in a new issue