Skip to content

Commit

Permalink
MDL-71611 block_accessreview: Return formats if feature disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchurchward committed May 12, 2021
1 parent 485ad2d commit 0ebe676
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions blocks/accessreview/block_accessreview.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,12 @@ public function init(): void {
* @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,
];
}

/**
Expand Down

0 comments on commit 0ebe676

Please sign in to comment.