From d49423d13117b2794d863a09b818ea24ed5481c0 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 b0079f6f28c..2846d1dba13 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) {