MDL-23037 Make current_language more robust in case xxx_utf8 names slip in

This commit is contained in:
Martin Dougiamas
2010-07-01 04:31:40 +00:00
parent 6902335084
commit 5e044efd52
+2
View File
@@ -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;
}