diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/translation/translation.module | 2 | ||||
-rw-r--r-- | modules/translation/translation.test | 2 |
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); |