Skip to content

Commit

Permalink
MDL-77657 theme: Fix get_extra_scss_code load order
Browse files Browse the repository at this point in the history
This led to problems with grandchild themes,
depending on their direct parent's extrascsscallback.
  • Loading branch information
danowar2k committed Aug 18, 2023
1 parent 4488c92 commit eae7f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/outputlib.php
Expand Up @@ -1625,7 +1625,7 @@ public function get_extra_scss_code() {

// Getting all the candidate functions.
$candidates = array();
foreach ($this->parent_configs as $parent_config) {
foreach (array_reverse($this->parent_configs) as $parent_config) {
if (!isset($parent_config->extrascsscallback)) {
continue;
}
Expand Down

0 comments on commit eae7f9d

Please sign in to comment.