Revert "Issue #2009014 follow-up by StephaneQ: Replace one more theme() with drupal_render() in file module."
This reverts commit f4aead7805
.
8.0.x
parent
09e5b2907e
commit
9614f73399
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue