mirror of
https://github.com/moodle/moodle.git
synced 2025-05-15 12:45:41 +02:00
MDL-69962 tool_usertours: Fix increase in included files
This commit is contained in:
parent
149fdcf075
commit
ad7d432ebe
@ -637,11 +637,13 @@ class manager {
|
|||||||
$tours = cache::get_matching_tourdata($pageurl);
|
$tours = cache::get_matching_tourdata($pageurl);
|
||||||
|
|
||||||
$matches = [];
|
$matches = [];
|
||||||
$filters = helper::get_all_filters();
|
if ($tours) {
|
||||||
foreach ($tours as $record) {
|
$filters = helper::get_all_filters();
|
||||||
$tour = tour::load_from_record($record);
|
foreach ($tours as $record) {
|
||||||
if ($tour->is_enabled() && $tour->matches_all_filters($PAGE->context, $filters)) {
|
$tour = tour::load_from_record($record);
|
||||||
$matches[] = $tour;
|
if ($tour->is_enabled() && $tour->matches_all_filters($PAGE->context, $filters)) {
|
||||||
|
$matches[] = $tour;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user