MDL-71634 course: Do not show "Your progress" info any more.

This commit is contained in:
Luca Bösch
2021-06-17 19:22:13 +02:00
parent 338b60f43b
commit 9fc6c45b10
8 changed files with 11 additions and 16 deletions
+5
View File
@@ -321,6 +321,8 @@ class completion_info {
* @deprecated since Moodle 2.0 - Use display_help_icon instead.
*/
public function print_help_icon() {
debugging('The function print_help_icon() is deprecated, please do not use it anymore.',
DEBUG_DEVELOPER);
print $this->display_help_icon();
}
@@ -328,9 +330,12 @@ class completion_info {
* Returns the 'Your progress' help icon, if completion tracking is enabled.
*
* @return string HTML code for help icon, or blank if not needed
* @deprecated since Moodle 4.0 - The 'Your progress' info isn't displayed any more.
*/
public function display_help_icon() {
global $PAGE, $OUTPUT, $USER;
debugging('The function display_help_icon() is deprecated, please do not use it anymore.',
DEBUG_DEVELOPER);
$result = '';
if ($this->is_enabled() && !$PAGE->user_is_editing() && $this->is_tracked_user($USER->id) && isloggedin() &&
!isguestuser()) {