diff --git a/core/includes/update.inc b/core/includes/update.inc index ec21aca..03723df 100644 --- a/core/includes/update.inc +++ b/core/includes/update.inc @@ -496,9 +496,10 @@ function update_prepare_d8_language() { function update_fix_d8_requirements() { global $conf; - if (drupal_get_installed_schema_version('system') < 8000 && !update_variable_get('update_d8_requirements', FALSE)) { + $update_d8_requirements = state()->get('update_d8_requirements') ?: FALSE; + if (drupal_get_installed_schema_version('system') < 8000 && !$update_d8_requirements) { // @todo: Make critical, first-run changes to the database here. - update_variable_set('update_d8_requirements', TRUE); + state()->set('update_d8_requirements', TRUE); } }