diff --git a/block_progress.php b/block_progress.php index b946349..929ca6e 100755 --- a/block_progress.php +++ b/block_progress.php @@ -70,7 +70,7 @@ public function specialization() { * @return bool */ public function instance_allow_multiple() { - return !block_progress_on_site_page(); + return !block_progress_on_my_page(); } /** @@ -79,7 +79,7 @@ public function instance_allow_multiple() { * @return bool */ public function instance_allow_config() { - return !block_progress_on_site_page(); + return !block_progress_on_my_page(); } /** @@ -119,7 +119,7 @@ public function get_content() { } // Draw the multi-bar content for the Dashboard and Front page. - if (block_progress_on_site_page()) { + if (block_progress_on_my_page()) { $courses = enrol_get_my_courses(); $coursenametoshow = get_config('block_progress', 'coursenametoshow') ?: DEFAULT_COURSENAMETOSHOW; $sql = "SELECT bi.id, diff --git a/edit_form.php b/edit_form.php index 3840f11..bb68d02 100644 --- a/edit_form.php +++ b/edit_form.php @@ -46,7 +46,7 @@ protected function specific_definition($mform) { raise_memory_limit(MEMORY_EXTRA); // The My home version is not configurable. - if (block_progress_on_site_page()) { + if (block_progress_on_my_page()) { return; }