summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-27 20:21:22 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-27 20:21:22 -0800
commit74113f869a37bd5eda1175c9eb520b938c4793c4 (patch)
tree0e020912660a11c4c38dc8b17365c1efbd34d22a /modules/gallery/helpers
parentdacb58ceed224fea34fa9cff740e6f30c70f0a7f (diff)
Fix for ticket #1037: Only show language drop-down when there's actually a choice.
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/gallery_block.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_block.php b/modules/gallery/helpers/gallery_block.php
index 46742743..eabdcebc 100644
--- a/modules/gallery/helpers/gallery_block.php
+++ b/modules/gallery/helpers/gallery_block.php
@@ -93,7 +93,7 @@ class gallery_block_Core {
case "language":
$locales = locales::installed();
- if (count($locales)) {
+ if (count($locales) > 1) {
foreach ($locales as $locale => $display_name) {
$locales[$locale] = SafeString::of_safe_html($display_name);
}