summaryrefslogtreecommitdiff
path: root/modules/locale
diff options
context:
space:
mode:
Diffstat (limited to 'modules/locale')
-rw-r--r--modules/locale/locale.module3
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);