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-08-18 16:21:02 +02:00
parent 862e1e10c2
commit 92ee1c561e
+1 -1
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;
}