MDL-77657 theme: Fix get_pre_scss_code load order

This led to problems with grandchild themes,
depending on their direct parent's prescsscallback.
This commit is contained in:
Daniel Poggenpohl 2023-03-20 08:50:41 +01:00
parent 862e1e10c2
commit 92ee1c561e

View File

@ -1626,7 +1626,7 @@ class theme_config {
// 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->prescsscallback)) {
continue;
}