Skip to content

Commit

Permalink
Merge branch 'MDL-71611-master_blockaccessreviewupgrade' of https://g…
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed May 13, 2021
2 parents 95dcd99 + 0ebe676 commit 639707d
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 639707d

Please sign in to comment.