Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions block_progress.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand All @@ -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();
}

/**
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down