From 7e0cb37d842ddce73b23cc9604e35b829940f754 Mon Sep 17 00:00:00 2001 From: webchick Date: Mon, 14 Oct 2013 22:00:09 -0700 Subject: [PATCH] Issue #2080459 by mrsinguyen: Remove Unused local variable () from /core/modules/locale/locale.install. --- core/modules/locale/locale.install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/locale/locale.install b/core/modules/locale/locale.install index 34c4f9194ff..3ab0247b2f6 100644 --- a/core/modules/locale/locale.install +++ b/core/modules/locale/locale.install @@ -293,7 +293,7 @@ function locale_requirements($phase) { // Determine the status of the translation updates per language. $status = locale_translation_get_status(); if ($status) { - foreach ($status as $project_id => $project) { + foreach ($status as $project) { foreach ($project as $langcode => $project_info) { if (empty($project_info->type)) { $untranslated[$langcode] = $languages[$langcode]->name; @@ -503,7 +503,7 @@ function locale_update_8004() { // Rename the negotiation and language switch callback keys. $negotiation = update_variable_get('language_negotiation_' . $type, NULL); if (!empty($negotiation)) { - foreach ($negotiation as $method_id => &$method) { + foreach ($negotiation as &$method) { if (isset($method['callbacks']['language'])) { $method['callbacks']['negotiation'] = $method['callbacks']['language']; unset($method['callbacks']['language']);