diff --git a/lib/weblib.php b/lib/weblib.php index 40ece0f7b40..00e3a8fc0a1 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2175,9 +2175,10 @@ function print_header ($title='', $heading='', $navigation='', $focus='', } @header('Accept-Ranges: none'); + $currentlanguage = current_language(); + if ($usexml) { // Added by Gustav Delius / Mad Alex for MathML output // Modified by Julian Sedding - $currentlanguage = current_language(); $mathplayer = preg_match("/MathPlayer/i", $_SERVER['HTTP_USER_AGENT']); if(!$mathplayer) { header('Content-Type: application/xhtml+xml'); @@ -2229,6 +2230,8 @@ function print_header ($title='', $heading='', $navigation='', $focus='', $pageclass .= ' drag'; } + $pageclass .= ' lang-'.$currentlanguage; + $bodytags .= ' class="'.$pageclass.'" id="'.$pageid.'"'; ob_start();