diff --git a/core/modules/file/file.field.inc b/core/modules/file/file.field.inc index a8b4941..2e9e030 100644 --- a/core/modules/file/file.field.inc +++ b/core/modules/file/file.field.inc @@ -593,7 +593,6 @@ function file_field_widget_submit($form, &$form_state) { * @param array $variables * An associative array containing: * - element: A render element representing the file. - * - element_attributes: An Array of HTML attributes. */ function template_preprocess_file_widget(&$variables) { $element = $variables['element']; @@ -714,14 +713,13 @@ function template_preprocess_file_widget_multiple(&$variables) { '#attributes' => array('id' => $table_id), ); - $output = empty($rows) ? '' : drupal_render($build); $variables['element'] = $element; } /** * Prepares variables for help text templates. * - * Default template: file-upload-help.html.twig + * Default template: file-upload-help.html.twig. * * @param array $variables * An associative array containing: diff --git a/core/modules/file/templates/file-link.html.twig b/core/modules/file/templates/file-link.html.twig index 6dfa936..65b2c29 100644 --- a/core/modules/file/templates/file-link.html.twig +++ b/core/modules/file/templates/file-link.html.twig @@ -4,10 +4,9 @@ * Default theme implementation for a link to a file. * * Available variables: + * - link: A hyperlink renderable array. * - attributes: Remaining HTML attributes of an element. - * - attributes.class: HTML classes. - * - icon: An icon as produced by file-icon.html.twig. - * - link: A rendered hyperlink. + * - class: HTML classes. * * @see template_preprocess_file_link() * diff --git a/core/modules/file/templates/file-upload-help.html.twig b/core/modules/file/templates/file-upload-help.html.twig index cdcb30a..fe4d194 100644 --- a/core/modules/file/templates/file-upload-help.html.twig +++ b/core/modules/file/templates/file-upload-help.html.twig @@ -11,4 +11,4 @@ * @ingroup themeable */ #} -{{ descriptions|t|join('
') }} +{{ descriptions|join('
') }} diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php old mode 100644 new mode 100755