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 21, 2023
1 parent e998f14 commit 7483bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/outputlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,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 7483bdd

Please sign in to comment.