From: urs_hunkler Date: Sun, 10 Jun 2007 13:44:05 +0000 (+0000) Subject: MDL-9977 and MDL-8446 - added $CFG->langdirection to be able to deal with ltr/rtl... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aa2ed803975593535ebd8e0fd28468e88b302013;p=moodle.git MDL-9977 and MDL-8446 - added $CFG->langdirection to be able to deal with ltr/rtl languages and correct themes. --- 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();