]> git.mjollnir.org Git - moodle.git/commitdiff
Added CSS class for current language to every page MDL-9750
authormoodler <moodler>
Wed, 9 May 2007 06:49:23 +0000 (06:49 +0000)
committermoodler <moodler>
Wed, 9 May 2007 06:49:23 +0000 (06:49 +0000)
lib/weblib.php

index d5c542e144258339d5a9604eac65fdef2771fe19..88fb748919016aab62fb82a53673c0e5bef69251 100644 (file)
@@ -2370,10 +2370,11 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
     }
     @header('Accept-Ranges: none');
 
+    $currentlanguage = current_language();
+
     if (empty($usexml)) {
         $direction =  ' xmlns="http://www.w3.org/1999/xhtml"'. $direction;  // See debug_header
     } else {
-        $currentlanguage = current_language();
         $mathplayer = preg_match("/MathPlayer/i", $_SERVER['HTTP_USER_AGENT']);
         if(!$mathplayer) {
             header('Content-Type: application/xhtml+xml');
@@ -2430,6 +2431,8 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
         $pageclass .= ' drag';
     }
 
+    $pageclass .= ' lang-'.$currentlanguage;
+
     $bodytags .= ' class="'.$pageclass.'" id="'.$pageid.'"';
 
     ob_start();