MDL-81948 theme: fix fallback layout logic

Finding the page layout fallback was trying to get a default layout from
the ancient theme called "base". This default theme do not exists
anymore and defining a wrong layout in a theme is a code mistake that
should not be bypassed.
This commit is contained in:
ferranrecio
2024-05-17 10:43:35 +02:00
parent bcae2164ac
commit 165709ff7d
+1 -3
View File
@@ -2499,9 +2499,7 @@ class theme_config {
}
}
debugging('Can not find layout file for: ' . $pagelayout);
// fallback to standard normal layout
return "$CFG->dirroot/theme/base/layout/general.php";
throw new coding_exception('Can not find layout file for: ' . $pagelayout . ' (' . $layoutfile . ')');
}
/**