From e35f411140a483b57e0384be29a47f4a0bb61c0b Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Sun, 26 Jan 2014 00:50:04 +0100 Subject: [PATCH] Issue #2177667 by InternetDevels | jessebeach: Replace theme() with drupal_render() in locale.bulk.inc. --- core/modules/locale/locale.bulk.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/modules/locale/locale.bulk.inc b/core/modules/locale/locale.bulk.inc index eb0dfe495ce..c0e7bbe2748 100644 --- a/core/modules/locale/locale.bulk.inc +++ b/core/modules/locale/locale.bulk.inc @@ -53,10 +53,16 @@ function locale_translate_import_form($form, &$form_state) { 'file_validate_extensions' => array('po'), 'file_validate_size' => array(file_upload_max_size()), ); + $file_description = array( + '#theme' => 'file_upload_help', + '#description' => t('A Gettext Portable Object file.'), + '#upload_validators' => $validators, + ); + $form['file'] = array( '#type' => 'file', '#title' => t('Translation file'), - '#description' => theme('file_upload_help', array('description' => t('A Gettext Portable Object file.'), 'upload_validators' => $validators)), + '#description' => drupal_render($file_description), '#size' => 50, '#upload_validators' => $validators, '#attributes' => array('class' => array('file-import-input')),