MDL-44933 themes: LESS file was served in designer mode and IE

This commit is contained in:
Frederic Massart
2014-04-03 17:12:09 +08:00
parent 1a727e121e
commit da28376022
+7
View File
@@ -845,6 +845,13 @@ class theme_config {
}
} else if ($subtype === 'theme') {
$cssfiles = $css['theme'];
foreach ($cssfiles as $key => $value) {
if ($this->lessfile && $key === $this->lessfile) {
// Remove the LESS file from the theme CSS files.
// The LESS files use the type 'less', not 'ie'.
unset($cssfiles[$key]);
}
}
}
} else if ($type === 'plugin') {