diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index 8d6ff20..03c1e87 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -253,7 +253,7 @@ function locale_theme() { 'template' => 'locale-translation-last-check', ), 'locale_translation_update_info' => array( - 'arguments' => array('updates' => array(), 'not_found' => array()), + 'variables' => array('updates' => array(), 'not_found' => array()), 'file' => 'locale.pages.inc', 'template' => 'locale-translation-update-info', ), diff --git a/core/modules/locale/locale.pages.inc b/core/modules/locale/locale.pages.inc index 97d93dc..38df677 100644 --- a/core/modules/locale/locale.pages.inc +++ b/core/modules/locale/locale.pages.inc @@ -545,8 +545,10 @@ function locale_translation_status_form($form, &$form_state) { // Build data options for the select table. foreach($updates as $langcode => $update) { $locale_translation_update_info = array('#theme' => 'locale_translation_update_info'); - foreach ($update as $key => $value) { - $locale_translation_update_info["#{$key}"] = $value; + foreach (array('updates', 'not_found') as $update_status) { + if (isset($update[$update_status])) { + $locale_translation_update_info['#' . $update_status] = $update[$update_status]; + } } $options[$langcode] = array( 'title' => check_plain($languages[$langcode]->name), @@ -779,8 +781,8 @@ function template_preprocess_locale_translation_update_info(&$variables) { // Build output for available updates. if (isset($variables['updates'])) { + $releases = array(); if ($variables['updates']) { - $releases = array(); foreach ($variables['updates'] as $update) { $modules[] = $update['name']; $releases[] = t('@module (@date)', array('@module' => $update['name'], '@date' => format_date($update['timestamp'], 'html_date')));