Permalink
Browse files

MDL-23037 Make current_language more robust in case xxx_utf8 names sl…

…ip in
  • Loading branch information...
1 parent 6902335 commit 5e044efd52836436c9d1cc096659f72a926638dd @moodler moodler committed Jul 1, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/moodlelib.php
View
@@ -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;
}

0 comments on commit 5e044ef

Please sign in to comment.