diff --git a/core/modules/file/file.module b/core/modules/file/file.module index d37a1baa5c3..49f5649aac8 100644 --- a/core/modules/file/file.module +++ b/core/modules/file/file.module @@ -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); diff --git a/core/modules/system/system.routing.yml b/core/modules/system/system.routing.yml index be35f3fc260..61363d6cda3 100644 --- a/core/modules/system/system.routing.yml +++ b/core/modules/system/system.routing.yml @@ -220,8 +220,3 @@ system_plugin_autocomplete: _controller: 'Drupal\system\Controller\SystemController::autocomplete' requirements: _access_system_plugin_ui: 'TRUE' - -front: - pattern: '/' - requirements: - _access: 'TRUE'