From aa2ed803975593535ebd8e0fd28468e88b302013 Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Sun, 10 Jun 2007 13:44:05 +0000 Subject: [PATCH] MDL-9977 and MDL-8446 - added $CFG->langdirection to be able to deal with ltr/rtl languages and correct themes. --- lib/setup.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/setup.php b/lib/setup.php index 5aa7d710b2..6d7b75ea66 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -587,6 +587,8 @@ global $HTTPSPAGEREQUIRED; $CFG->lang = $SESSION->lang; } } + + $CFG->langdirection = (get_string('thisdirection') == 'rtl') ? 'rtl' : 'ltr'; // set default locale and themes - might be changed again later from require_login() course_setup(); -- 2.39.5