Commit 9614f733 authored by alexpott's avatar alexpott

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

Revert "Issue #2009014 follow-up by StephaneQ: Replace one more theme() with drupal_render() in file module."

This reverts commit f4aead78.
parent 09e5b290
......@@ -913,11 +913,7 @@ function file_save_upload($form_field_name, $validators = array(), $destination
if (!empty($errors)) {
$message = t('The specified file %name could not be uploaded.', array('%name' => $file->getFilename()));
if (count($errors) > 1) {
$item_list = array(
'#theme' => 'item_list',
'#items' => $errors,
);
$message .= drupal_render($item_list);
$message .= theme('item_list', array('items' => $errors));
}
else {
$message .= ' ' . array_pop($errors);
......
......@@ -220,8 +220,3 @@ system_plugin_autocomplete:
_controller: 'Drupal\system\Controller\SystemController::autocomplete'
requirements:
_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