MDL-22015 fixed more string_manager encapsulation issues - string format conversion scripts

This commit is contained in:
Petr Skoda
2010-04-14 14:48:12 +00:00
parent 96de38c3ab
commit 15a17d3504
2 changed files with 4 additions and 9 deletions
+1 -5
View File
@@ -32,11 +32,7 @@ require_once('../../../../config.php');
$lang = optional_param('elanguage', 'en', PARAM_SAFEDIR);
$theme = optional_param('etheme', 'advanced', PARAM_SAFEDIR);
if ($lang === 'en') {
//ok
} else if (file_exists($CFG->langotherroot .'/'. $lang)) {
//$lang = $lang;
} else {
if (!get_string_manager()->translation_exists($lang, false)) {
$lang = 'en';
}