]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9977 and MDL-8446 - sheet setting depending on $CFG->langdirection.
authorurs_hunkler <urs_hunkler>
Sun, 10 Jun 2007 17:08:17 +0000 (17:08 +0000)
committerurs_hunkler <urs_hunkler>
Sun, 10 Jun 2007 17:08:17 +0000 (17:08 +0000)
Due to big problems I added debug messages.

theme/custom_corners/config.php

index 3cce51cdc29105662a3a3248543b4aaad5cf4c6d..69d2ee4cce6ebf5e860a0a523756ff217c3de0a7 100644 (file)
@@ -5,8 +5,20 @@
 /// how Moodle uses this theme.
 ////////////////////////////////////////////////////////////////////////////////
 
+trigger_error('custom_corners/config.php - $CFG->langdirection: '.$CFG->langdirection, E_USER_NOTICE);
+
+if ($CFG->langdirection == 'rtl') {
+    $THEME->sheets = array('user_styles', 'styles_rtl');
+    trigger_error('custom_corners/config.php - is rtl ::: ', E_USER_NOTICE);
+} else {
+    $THEME->sheets = array('user_styles');
+    trigger_error('custom_corners/config.php - is not rtl ::: ', E_USER_NOTICE);
+}
+
+trigger_error('custom_corners/config.php - $THEME->sheets: '.$THEME->sheets[0].', '.$THEME->sheets[1], E_USER_NOTICE);
+
+// $THEME->sheets = array('user_styles');
 
-$THEME->sheets = array('user_styles');
 // $THEME->sheets = array('user_styles', 'adminpage_correct');
 
 /// This variable is an array containing the names of all the