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

This reverts commit f4aead7805.
8.0.x
Alex Pott 2013-08-04 21:26:52 +02:00
parent 09e5b2907e
commit 9614f73399
2 changed files with 1 additions and 10 deletions

View File

@ -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);

View File

@ -220,8 +220,3 @@ system_plugin_autocomplete:
_controller: 'Drupal\system\Controller\SystemController::autocomplete'
requirements:
_access_system_plugin_ui: 'TRUE'
front:
pattern: '/'
requirements:
_access: 'TRUE'