summaryrefslogtreecommitdiff
path: root/modules/locale
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-17 05:50:29 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-17 05:50:29 +0000
commit4278afa16bb46819975f95fe91021edcb852ca47 (patch)
tree736530aa01cbf453813a68b505b5532a2d6597fa /modules/locale
parent29067790f1295bd657343da8eba6722d6824d15a (diff)
downloadbrdo-4278afa16bb46819975f95fe91021edcb852ca47.tar.gz
brdo-4278afa16bb46819975f95fe91021edcb852ca47.tar.bz2
#473268 by David_Rothstein, sun, yoroy, Gábor Hojtsy, cwgordon7, et al.: Allow contextual editing of dang near everything on the page. Also adds a context system to menu local tasks.
Diffstat (limited to 'modules/locale')
-rw-r--r--modules/locale/locale.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/locale/locale.test b/modules/locale/locale.test
index 9a22b9abc..bb6a2de86 100644
--- a/modules/locale/locale.test
+++ b/modules/locale/locale.test
@@ -1089,7 +1089,7 @@ class LanguageSwitchingFunctionalTest extends DrupalWebTestCase {
$this->assertText(t('Languages'), t('Language switcher block found.'));
// Assert that only the current language is marked as active.
- list($language_switcher) = $this->xpath('//div[@id="block-locale-language"]');
+ list($language_switcher) = $this->xpath('//div[@id="block-locale-language"]/div[@class="content"]');
$links = array(
'active' => array(),
'inactive' => array(),
@@ -1098,7 +1098,7 @@ class LanguageSwitchingFunctionalTest extends DrupalWebTestCase {
'active' => array(),
'inactive' => array(),
);
- foreach ($language_switcher->div->ul->li as $link) {
+ foreach ($language_switcher->ul->li as $link) {
$classes = explode(" ", (string) $link['class']);
list($language) = array_intersect($classes, array('en', 'fr'));
if (in_array('active', $classes)) {