Permalink
Browse files

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

…e" (merge from HEAD.)
  • Loading branch information...
1 parent ec6c6da commit 375016e8226712617724eb642fc74604a444a684 nfreear committed Feb 13, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
@@ -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)

0 comments on commit 375016e

Please sign in to comment.