mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-9977 and MDL-8446 - sheet setting depending on $CFG->langdirection.
Due to big problems I added debug messages.
This commit is contained in:
parent
72a66c61e8
commit
89ba83d42f
1 changed files with 13 additions and 1 deletions
|
@ -5,8 +5,20 @@
|
||||||
/// how Moodle uses this theme.
|
/// 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');
|
// $THEME->sheets = array('user_styles', 'adminpage_correct');
|
||||||
|
|
||||||
/// This variable is an array containing the names of all the
|
/// This variable is an array containing the names of all the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue