MDL-54563 Block: Only Allow completion blocks on course pages

This commit is contained in:
Stephen Bourget 2016-05-12 21:35:39 -04:00 committed by Cameron Ball
parent 6a74e76fb8
commit 5b40141f6d
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class block_completionstatus extends block_base {
}
public function applicable_formats() {
return array('all' => true, 'mod' => false, 'tag' => false, 'my' => false);
return array('course' => true);
}
public function get_content() {

View File

@ -39,7 +39,7 @@ class block_selfcompletion extends block_base {
}
function applicable_formats() {
return array('all' => true, 'mod' => false, 'tag' => false, 'my' => false);
return array('course' => true);
}
public function get_content() {