MDL-71634 course: Do not show "Your progress" info any more.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user