Skip to content

Commit

Permalink
MDL-54563 Block: Only Allow completion blocks on course pages
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourget authored and cameorn1730 committed Jun 1, 2016
1 parent 6a74e76 commit 5b40141
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blocks/completionstatus/block_completionstatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function init() {
}

public function applicable_formats() {
return array('all' => true, 'mod' => false, 'tag' => false, 'my' => false);
return array('course' => true);
}

public function get_content() {
Expand Down
2 changes: 1 addition & 1 deletion blocks/selfcompletion/block_selfcompletion.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function init() {
}

function applicable_formats() {
return array('all' => true, 'mod' => false, 'tag' => false, 'my' => false);
return array('course' => true);
}

public function get_content() {
Expand Down

0 comments on commit 5b40141

Please sign in to comment.