Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ip in
  • Loading branch information...
commit 5e044efd52836436c9d1cc096659f72a926638dd 1 parent 6902335
@moodler moodler authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/moodlelib.php
View
2  lib/moodlelib.php
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.