Commit f4aead78 authored by webchick's avatar webchick

Issue #2009014 follow-up by StephaneQ: Replace one more theme() with...

Issue #2009014 follow-up by StephaneQ: Replace one more theme() with drupal_render() in file module.
parent f28513b3
...@@ -913,7 +913,11 @@ function file_save_upload($form_field_name, $validators = array(), $destination ...@@ -913,7 +913,11 @@ function file_save_upload($form_field_name, $validators = array(), $destination
if (!empty($errors)) { if (!empty($errors)) {
$message = t('The specified file %name could not be uploaded.', array('%name' => $file->getFilename())); $message = t('The specified file %name could not be uploaded.', array('%name' => $file->getFilename()));
if (count($errors) > 1) { if (count($errors) > 1) {
$message .= theme('item_list', array('items' => $errors)); $item_list = array(
'#theme' => 'item_list',
'#items' => $errors,
);
$message .= drupal_render($item_list);
} }
else { else {
$message .= ' ' . array_pop($errors); $message .= ' ' . array_pop($errors);
......
...@@ -220,3 +220,8 @@ system_plugin_autocomplete: ...@@ -220,3 +220,8 @@ system_plugin_autocomplete:
_controller: 'Drupal\system\Controller\SystemController::autocomplete' _controller: 'Drupal\system\Controller\SystemController::autocomplete'
requirements: requirements:
_access_system_plugin_ui: 'TRUE' _access_system_plugin_ui: 'TRUE'
front:
pattern: '/'
requirements:
_access: 'TRUE'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment