Skip to content

Commit

Permalink
MDL-58179 lesson: Avoid using span with class "label"
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch authored and andrewnicols committed Mar 20, 2018
1 parent 26a4ad6 commit 2f0b720
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mod/lesson/pagetypes/multichoice.php
Expand Up @@ -282,7 +282,7 @@ public function display_answers(html_table $table) {
$cells[] = '<label>' . get_string('answer', 'lesson') . ' ' . $i . '</label>';
} else if ($this->lesson->jumpto_is_correct($this->properties->id, $answer->jumpto)) {
// underline correct answers
$cells[] = '<span class="correct">' . get_string('answer', 'lesson') . ' ' . $i . '</span>: \n';
$cells[] = '<span class="correct">' . get_string('answer', 'lesson') . ' ' . $i . '</span>:' . "\n";
} else {
$cells[] = '<label class="correct">' . get_string('answer', 'lesson') . ' ' . $i . '</label>';
}
Expand Down
2 changes: 1 addition & 1 deletion mod/lesson/pagetypes/numerical.php
Expand Up @@ -144,7 +144,7 @@ public function display_answers(html_table $table) {
$cells[] = '<label>' . get_string('answer', 'lesson') . ' ' . $i . ':</label>';
} else if ($this->lesson->jumpto_is_correct($this->properties->id, $answer->jumpto)) {
// underline correct answers
$cells[] = '<span class="correct">' . get_string('answer', 'lesson') . ' ' . $i . '</span>: \n';
$cells[] = '<span class="correct">' . get_string('answer', 'lesson') . ' ' . $i . '</span>:' . "\n";
} else {
$cells[] = '<label class="correct">' . get_string('answer', 'lesson') . ' ' . $i . '</label>';
}
Expand Down
2 changes: 1 addition & 1 deletion mod/lesson/pagetypes/shortanswer.php
Expand Up @@ -204,7 +204,7 @@ public function display_answers(html_table $table) {
$cells[] = '<label>' . get_string('answer', 'lesson') . ' ' . $i . '</label>';
} else if ($this->lesson->jumpto_is_correct($this->properties->id, $answer->jumpto)) {
// underline correct answers
$cells[] = '<span class="correct">' . get_string('answer', 'lesson') . ' ' . $i . '</span>: \n';
$cells[] = '<span class="correct">' . get_string('answer', 'lesson') . ' ' . $i . '</span>:' . "\n";
} else {
$cells[] = '<label class="correct">' . get_string('answer', 'lesson') . ' ' . $i . '</label>';
}
Expand Down
2 changes: 1 addition & 1 deletion mod/lesson/pagetypes/truefalse.php
Expand Up @@ -129,7 +129,7 @@ public function display_answers(html_table $table) {
$cells[] = '<label>' . get_string('answer', 'lesson') . ' ' . $i . '</label>';
} else if ($this->lesson->jumpto_is_correct($this->properties->id, $answer->jumpto)) {
// underline correct answers
$cells[] = '<span class="correct">' . get_string('answer', 'lesson') . ' ' . $i . '</span>: \n';
$cells[] = '<span class="correct">' . get_string('answer', 'lesson') . ' ' . $i . '</span>:' . "\n";
} else {
$cells[] = '<label class="correct">' . get_string('answer', 'lesson') . ' ' . $i . '</label>';
}
Expand Down

0 comments on commit 2f0b720

Please sign in to comment.