mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
themes MDL-22353 Split CSS urls from one to three to resolve IE renderering issues
This commit is contained in:
parent
d2dbd0c0d0
commit
537740cba1
@ -606,12 +606,14 @@ class theme_config {
|
|||||||
$urls = array();
|
$urls = array();
|
||||||
|
|
||||||
if ($rev > -1) {
|
if ($rev > -1) {
|
||||||
$params = array('theme'=>$this->name,'rev'=>$rev);
|
|
||||||
if (check_browser_version('MSIE', 5) and !check_browser_version('MSIE', 8)) {
|
if (check_browser_version('MSIE', 5) and !check_browser_version('MSIE', 8)) {
|
||||||
$params['type'] = 'ie';
|
// We need to split the CSS files for IE
|
||||||
|
$urls[] = new moodle_url($CFG->httpswwwroot.'/theme/styles.php', array('theme'=>$this->name,'rev'=>$rev, 'type'=>'plugins'));
|
||||||
|
$urls[] = new moodle_url($CFG->httpswwwroot.'/theme/styles.php', array('theme'=>$this->name,'rev'=>$rev, 'type'=>'parents'));
|
||||||
|
$urls[] = new moodle_url($CFG->httpswwwroot.'/theme/styles.php', array('theme'=>$this->name,'rev'=>$rev, 'type'=>'theme'));
|
||||||
|
} else {
|
||||||
|
$urls[] = new moodle_url($CFG->httpswwwroot.'/theme/styles.php', array('theme'=>$this->name,'rev'=>$rev));
|
||||||
}
|
}
|
||||||
$urls[] = new moodle_url($CFG->httpswwwroot.'/theme/styles.php', $params);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// find out the current CSS and cache it now for 5 seconds
|
// find out the current CSS and cache it now for 5 seconds
|
||||||
// the point is to construct the CSS only once and pass it through the
|
// the point is to construct the CSS only once and pass it through the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user