Ensure language strings are reloaded for each unit test

This commit is contained in:
Christopher Smith 2013-10-16 18:00:46 +01:00
parent a467e020fa
commit 1d82c8d343
1 changed files with 2 additions and 2 deletions

View File

@ -267,10 +267,10 @@ function init_lang($langCode) {
$lang = array();
//load the language files
require_once(DOKU_INC.'inc/lang/en/lang.php');
require(DOKU_INC.'inc/lang/en/lang.php');
if ($langCode && $langCode != 'en') {
if (file_exists(DOKU_INC."inc/lang/$langCode/lang.php")) {
require_once(DOKU_INC."inc/lang/$langCode/lang.php");
require(DOKU_INC."inc/lang/$langCode/lang.php");
}
}
}