Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for MDL-8507 "Local language pack-name can appear in language cod…

…e" (merge from HEAD.)
  • Loading branch information...
commit 375016e8226712617724eb642fc74604a444a684 1 parent ec6c6da
nfreear authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/weblib.php
View
2  lib/weblib.php
@@ -2156,7 +2156,7 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
$direction = ' dir="ltr"';
}
//Accessibility: added the 'lang' attribute to $direction, used in theme <html> tag.
- $language = str_replace('_utf8','',$CFG->lang);
+ $language = str_replace('_', '-', str_replace('_utf8', '', current_language()));
$direction .= ' lang="'.$language.'" xml:lang="'.$language.'"';
if ($cache) { // Allow caching on "back" (but not on normal clicks)
Please sign in to comment.
Something went wrong with that request. Please try again.