]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9977 and MDL-8446 - added $CFG->langdirection to be able to deal with ltr/rtl...
authorurs_hunkler <urs_hunkler>
Sun, 10 Jun 2007 13:44:05 +0000 (13:44 +0000)
committerurs_hunkler <urs_hunkler>
Sun, 10 Jun 2007 13:44:05 +0000 (13:44 +0000)
lib/setup.php

index 5aa7d710b2aaa530aeb734eafa756a147fcbfb83..6d7b75ea66339dd35fbb83fc16aca2a4e3e83a5e 100644 (file)
@@ -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();