diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-25 15:14:33 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-25 15:14:33 +0000 |
commit | 08f59215f7ddefc29daf5a47c113bb8566ff06cb (patch) | |
tree | 507e10c6cc7724f7b88de5a1d2b09c3a426d6704 /modules/locale | |
parent | 14d19b22cac31ac457d2cba01130d4bd4c80588e (diff) | |
download | brdo-08f59215f7ddefc29daf5a47c113bb8566ff06cb.tar.gz brdo-08f59215f7ddefc29daf5a47c113bb8566ff06cb.tar.bz2 |
#518364 by plach, neochief, Ryan Palmer: Fixed Nodes with one language don't affect the language switcher block.
Diffstat (limited to 'modules/locale')
-rw-r--r-- | modules/locale/locale.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module index 46a3f86db..c55d43352 100644 --- a/modules/locale/locale.module +++ b/modules/locale/locale.module @@ -923,7 +923,8 @@ function locale_block_view($type) { $path = drupal_is_front_page() ? '<front>' : $_GET['q']; $links = language_negotiation_get_switch_links($type, $path); - if (isset($links->links) && count($links->links > 1)) { + if (isset($links->links)) { + drupal_add_css(drupal_get_path('module', 'locale') . '/locale.css'); $class = "language-switcher-{$links->provider}"; $variables = array('links' => $links->links, 'attributes' => array('class' => array($class))); $block['content'] = theme('links__locale_block', $variables); |