MDL-23037 Make current_language more robust in case xxx_utf8 names slip in
This commit is contained in:
@@ -5553,6 +5553,8 @@ function current_language() {
|
||||
$return = 'en';
|
||||
}
|
||||
|
||||
$return = str_replace('_utf8', '', $return); // Just in case this slipped in from somewhere by accident
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user