mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Fix for MDL-8507 "Local language pack-name can appear in language code"
This commit is contained in:
parent
a5ca0d57d8
commit
c4792df0bf
1 changed files with 1 additions and 1 deletions
|
@ -2059,7 +2059,7 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
|
||||||
$direction = ' dir="ltr"';
|
$direction = ' dir="ltr"';
|
||||||
}
|
}
|
||||||
//Accessibility: added the 'lang' attribute to $direction, used in theme <html> tag.
|
//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.'"';
|
$direction .= ' lang="'.$language.'" xml:lang="'.$language.'"';
|
||||||
|
|
||||||
if ($cache) { // Allow caching on "back" (but not on normal clicks)
|
if ($cache) { // Allow caching on "back" (but not on normal clicks)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue