From a8d82ea9a4c5a7568aeebfcc8fe90fb39e33c69b Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Sun, 10 Jun 2007 13:54:38 +0000 Subject: [PATCH] MDL-9977 and MDL-8446 - added body class 'ltr'/'rtl' for language direction to support themes for 'rtl' languages. --- lib/weblib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/weblib.php b/lib/weblib.php index 4a560613b9..468cfa0f2c 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2452,6 +2452,10 @@ function print_header ($title='', $heading='', $navigation='', $focus='', $pageclass .= ' drag'; } + if (!empty($CFG->langdirection)) { + $pageclass .= ' ' . $CFG->langdirection; + } + $pageclass .= ' lang-'.$currentlanguage; $bodytags .= ' class="'.$pageclass.'" id="'.$pageid.'"'; -- 2.39.5