Commit 0ebe6764 authored by Mike Churchward's avatar Mike Churchward
Browse files

MDL-71611 block_accessreview: Return formats if feature disabled.

parent 485ad2df
......@@ -44,17 +44,12 @@ class block_accessreview extends block_base {
* @return array
*/
public function applicable_formats(): array {
// If Brickfield accessibility toolkit has been disabled, do nothing.
if (accessibility::is_accessibility_enabled()) {
return [
'course-view' => true,
'site' => true,
'mod' => false,
'my' => false,
];
} else {
return [];
}
return [
'course-view' => true,
'site' => true,
'mod' => false,
'my' => false,
];
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment