From 75943600ed31d17ed43ca1e094bb5a1c74b4b754 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 9 May 2007 06:46:37 +0000 Subject: [PATCH] Added CSS for current language MDL-9750 --- lib/weblib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();