Skip to content

Commit

Permalink
Added CSS class for current language to every page MDL-9750
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed May 9, 2007
1 parent 7ea9b09 commit b0b4ffe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -2430,6 +2431,8 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
$pageclass .= ' drag';
}

$pageclass .= ' lang-'.$currentlanguage;

$bodytags .= ' class="'.$pageclass.'" id="'.$pageid.'"';

ob_start();
Expand Down

0 comments on commit b0b4ffe

Please sign in to comment.