From e1ac9abfa069c19f26ebdd32a03938f843f4d467 Mon Sep 17 00:00:00 2001 From: Owen Herbert Date: Mon, 13 Nov 2023 15:33:03 +1000 Subject: [PATCH] WR-421584: Fix bad method names --- block_progress.php | 6 +++--- edit_form.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }