summaryrefslogtreecommitdiff
path: root/modules/translation
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-02-21 02:06:29 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2012-02-21 02:06:29 -0800
commit59b0b8342da5abc6f22fdfbb391b58f0956aac2a (patch)
tree3c7187c2ee4e99b9e0c232b47223d39744b4772f /modules/translation
parent300a684c0ca8fd7414b942b661df0626958274c1 (diff)
downloadbrdo-59b0b8342da5abc6f22fdfbb391b58f0956aac2a.tar.gz
brdo-59b0b8342da5abc6f22fdfbb391b58f0956aac2a.tar.bz2
Issue #1408636 by swentel, c31ck: Fixed Fatal error: [] operator not supported for strings in includes/common.inc on line 2320.
Diffstat (limited to 'modules/translation')
-rw-r--r--modules/translation/translation.module2
-rw-r--r--modules/translation/translation.test2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module
index dc87249fa..794bd35f5 100644
--- a/modules/translation/translation.module
+++ b/modules/translation/translation.module
@@ -528,7 +528,7 @@ function translation_language_switch_links_alter(array &$links, $type, $path) {
else {
// No translation in this language, or no permission to view.
unset($links[$langcode]['href']);
- $links[$langcode]['attributes']['class'] = 'locale-untranslated';
+ $links[$langcode]['attributes']['class'][] = 'locale-untranslated';
}
}
}
diff --git a/modules/translation/translation.test b/modules/translation/translation.test
index fe320a935..48546a17d 100644
--- a/modules/translation/translation.test
+++ b/modules/translation/translation.test
@@ -436,7 +436,7 @@ class TranslationTestCase extends DrupalWebTestCase {
$xpath = '//div[contains(@class, :type)]//a[@href=:url]';
}
else {
- $xpath = '//div[contains(@class, :type)]//span[@class="locale-untranslated"]';
+ $xpath = '//div[contains(@class, :type)]//span[contains(@class, "locale-untranslated")]';
}
$found = $this->findContentByXPath($xpath, array(':type' => $type, ':url' => $url), $translation_language->native);