diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 7174e2d..c0e5077 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -112,21 +112,18 @@ function system_requirements($phase) { '@system_requirements' => 'http://drupal.org/requirements', )); - $item_list = array( - '#theme' => 'item_list', - '#items' => $missing_extensions, - ); - // We use twig inline_template to avoid double escaping. $description = array( '#type' => 'inline_template', - '#template' => '{{ description }}{{ var }}', + '#template' => '{{ description }}{{ missing_extensions }}', '#context' => array( 'description' => $description, - 'var' => drupal_render($item_list), + 'missing_extensions' => array( + '#theme' => 'item_list', + '#items' => $missing_extensions, + ), ), ); - $description = drupal_render($description); $requirements['php_extensions']['value'] = t('Disabled'); $requirements['php_extensions']['severity'] = REQUIREMENT_ERROR; @@ -229,7 +226,6 @@ function system_requirements($phase) { 'handbook' => $handbook_link, ), ); - $description = drupal_render($description); $requirements['php_memory_limit']['description'] = $description; $requirements['php_memory_limit']['severity'] = REQUIREMENT_WARNING; @@ -254,21 +250,17 @@ function system_requirements($phase) { $description = $conf_errors[0]; } else { - $item_list = array( - '#theme' => 'item_list', - '#items' => $conf_errors, - ); - $configuration_error_list = drupal_render($item_list); - // We use twig inline_template to avoid double escaping. $description = array( '#type' => 'inline_template', - '#template' => '{{ var }}', + '#template' => '{{ configuration_error_list }}', '#context' => array( - 'var' => $configuration_error_list, + 'configuration_error_list' => array( + '#theme' => 'item_list', + '#items' => $conf_errors, + ), ), ); - $description = drupal_render($description); } $requirements['configuration_files'] = array( 'value' => t('Not protected'), @@ -458,7 +450,6 @@ function system_requirements($phase) { 'description' => $description, ), ); - $description = drupal_render($description); $requirements['file system']['description'] = $description; $requirements['file system']['severity'] = REQUIREMENT_ERROR; }