Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
xmlsitemap
Commits
32c1dd8b
Commit
32c1dd8b
authored
Jan 23, 2010
by
Dave Reid
Browse files
by Dave Reid: Removed call to reset locale() and added proper parameters for locale_add_language().
parent
0cfaa53c
Changes
1
Hide whitespace changes
Inline
Side-by-side
xmlsitemap_i18n/xmlsitemap_i18n.test
View file @
32c1dd8b
...
...
@@ -16,15 +16,14 @@ class XMLSitemapI18nWebTestCase extends XMLSitemapTestHelper {
* Set up an administrative user account and testing keys.
*/
function
setUp
()
{
// Call parent::setUp() allowing
Mollom
test cases to pass further modules.
// Call parent::setUp() allowing test cases to pass further modules.
$modules
=
func_get_args
();
$modules
=
array_merge
(
array
(
'locale'
,
'translation'
,
'i18n'
,
'xmlsitemap_i18n'
),
$modules
);
call_user_func_array
(
array
(
'parent'
,
'setUp'
),
$modules
);
// Add predefined language and reset the locale cache.
require_once
'./includes/locale.inc'
;
locale_add_language
(
'fr'
);
locale
(
NULL
,
NULL
,
TRUE
);
require_once
DRUPAL_ROOT
.
'/includes/locale.inc'
;
locale_add_language
(
'fr'
,
NULL
,
NULL
,
LANGUAGE_LTR
,
''
,
'fr'
);
variable_set
(
'xmlsitemap_languages'
,
array
(
'en'
,
'fr'
));
variable_set
(
'language_negotiation'
,
LANGUAGE_NEGOTIATION_PATH
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment