From 0f7f05379c31b9a161e28f21304870796ed71233 Mon Sep 17 00:00:00 2001 From: Eric Merrill Date: Wed, 12 Jun 2019 13:05:40 -0400 Subject: [PATCH] MDL-65904 theme: Compile fallback css in the correct order --- lib/outputlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outputlib.php b/lib/outputlib.php index 5a2c8319346..9863eac7b3f 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -1547,7 +1547,7 @@ class theme_config { * @return string Return compiled css. */ public function get_precompiled_css_content() { - $configs = [$this] + $this->parent_configs; + $configs = array_reverse($this->parent_configs) + [$this]; $css = ''; foreach ($configs as $config) {