Merge branch 'MDL-66197-36' of git://github.com/marinaglancy/moodle into MOODLE_36_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2019-10-03 00:45:52 +02:00
+1 -10
View File
@@ -7020,21 +7020,12 @@ function current_language() {
*/
function get_parent_language($lang=null) {
// Let's hack around the current language.
if (!empty($lang)) {
$oldforcelang = force_current_language($lang);
}
$parentlang = get_string_manager()->get_string('parentlanguage', 'langconfig', null, $lang);
$parentlang = get_string('parentlanguage', 'langconfig');
if ($parentlang === 'en') {
$parentlang = '';
}
// Let's hack around the current language.
if (!empty($lang)) {
force_current_language($oldforcelang);
}
return $parentlang;
}