From 420b9c1885420721d93beb2d27c19b5b46ccca9c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 22 Feb 2010 20:53:13 +0000 Subject: =?UTF-8?q?-=20Patch=20#332725=20by=20andypost,=20Damien=20Tournou?= =?UTF-8?q?d,=20lilou,=20G=C3=A1bor=20Hojtsy:=20locale=5Finc=5Fcallback()?= =?UTF-8?q?=20is=20a=20thing=20of=20the=20past.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/field/tests/field.test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/field/tests/field.test') diff --git a/modules/field/tests/field.test b/modules/field/tests/field.test index 7468653b1..d25f120fc 100644 --- a/modules/field/tests/field.test +++ b/modules/field/tests/field.test @@ -2576,8 +2576,9 @@ class FieldTranslationsTestCase extends FieldTestCase { field_create_instance($instance); $this->instance = field_read_instance('test_entity', $this->field_name, 'test_bundle'); + require_once DRUPAL_ROOT . '/includes/locale.inc'; for ($i = 0; $i < 3; ++$i) { - locale_inc_callback('locale_add_language', 'l' . $i, $this->randomString(), $this->randomString()); + locale_add_language('l' . $i, $this->randomString(), $this->randomString()); } } -- cgit v1.2.3