MDL-22015 fixed more string_manager encapsulation issues

This commit is contained in:
Petr Skoda
2010-04-14 14:38:33 +00:00
parent db975a46c0
commit ecd7978c05
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -582,7 +582,7 @@ if (!isset($CFG->theme)) {
// majority of cases), use the stored locale specified by admin.
// note: do not accept lang parameter from POST
if (isset($_GET['lang']) and ($lang = optional_param('lang', '', PARAM_SAFEDIR))) {
if (file_exists($CFG->langotherroot.'/'.$lang) or file_exists($CFG->dirroot.'/lang/'.$lang)) {
if (get_string_manager()->translation_exists($lang, false)) {
$SESSION->lang = $lang;
}
}