From 78e4c3dd6cf3a221d75fc09fad20ee2ee08d6e62 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 9 May 2007 06:45:07 +0000 Subject: [PATCH] Added language class for CSS MDL-9750 --- lib/weblib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 8abb97bba80..e8e65d4daf9 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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'); -- 2.11.4.GIT