From da283760228304fca1e6369bd31416d69e555ec0 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Thu, 3 Apr 2014 16:40:42 +0800 Subject: [PATCH] MDL-44933 themes: LESS file was served in designer mode and IE --- lib/outputlib.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/outputlib.php b/lib/outputlib.php index 8adf2171b65..4112d641e62 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -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') {