Added language class for CSS MDL-9750

This commit is contained in:
moodler
2007-05-09 06:45:07 +00:00
parent b4af3c2f48
commit 78e4c3dd6c
+4 -1
View File
@@ -2027,9 +2027,10 @@ function print_header ($title='', $heading='', $navigation='', $focus='', $meta=
}
@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');
@@ -2077,6 +2078,8 @@ function print_header ($title='', $heading='', $navigation='', $focus='', $meta=
$pageclass .= ' editing';
}
$pageclass .= ' lang-'.$currentlanguage;
$bodytags .= ' class="'.$pageclass.'" id="'.$pageid.'"';
include ($CFG->themedir.current_theme().'/header.html');