summaryrefslogtreecommitdiff
path: root/modules/locale/locale.api.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/locale/locale.api.php')
-rw-r--r--modules/locale/locale.api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/locale/locale.api.php b/modules/locale/locale.api.php
index f39379e66..595447f1a 100644
--- a/modules/locale/locale.api.php
+++ b/modules/locale/locale.api.php
@@ -68,8 +68,8 @@ function hook_language_init() {
function hook_language_switch_links_alter(array &$links, $type, $path) {
global $language;
- if ($type == LANGUAGE_TYPE_CONTENT && isset($links[$language])) {
- foreach ($links[$language] as $link) {
+ if ($type == LANGUAGE_TYPE_CONTENT && isset($links[$language->language])) {
+ foreach ($links[$language->language] as $link) {
$link['attributes']['class'][] = 'active-language';
}
}