MDL-65904 theme: Compile fallback css in the correct order

This commit is contained in:
Eric Merrill 2019-06-12 13:05:40 -04:00
parent f3507273e9
commit 0f7f05379c

View File

@ -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) {