-
Bug
-
Resolution: Fixed
-
Minor
-
3.3.7, 3.4.4, 3.5, 3.5.1, 3.6, 3.7
-
MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MDL-62974-master -
While working on MDL-62761 I noticed that there is an obsolete HTML font tag in mod/lesson/index.php
$due = "<font color=\"red\">".userdate($lesson->deadline)."</font>";
This is used to display overdue lesson in red.
As the font tag is no more supported in HTML5 we must remove it.
Such hardcoded color is also very bad for theme customization.
But this raise the question of how overdue lessons should be displayed.
I don't know what other activity modules (quiz, assign, ...) do in a similar case.
Also there is a completely wrong font closing tag in mod/lesson/report.php:
$fontstart = "<span class=\"dimmed\">";
$fontend = "</font>";
Here I think it should be enough to just replace the line with
$fontend = "</span>";