UniqueAnswerImage header shows UniqueAnswer header

pull/4038/head
Angel Fernando Quiroz Campos 4 years ago committed by GitHub
parent 14248c4b19
commit 4d7d5c72c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      main/exercise/UniqueAnswerImage.php

@ -425,29 +425,4 @@ class UniqueAnswerImage extends UniqueAnswer
$this->updateWeighting($questionWeighting);
$this->save($exercise);
}
/**
* {@inheritdoc}
*/
public function return_header(Exercise $exercise, $counter = null, $score = [])
{
if ($exercise->showExpectedChoice()) {
$header = '<table class="'.$this->question_table_class.'">
<tr>
<th>'.get_lang('Choice').'</th>';
if ($exercise->showExpectedChoiceColumn()) {
$header .= '<th>'.get_lang('ExpectedChoice').'</th>';
}
$header .= '<th>'.get_lang('Answer').'</th>';
$header .= '<th>'.get_lang('Status').'</th>';
if (false === $exercise->hideComment) {
$header .= '<th>'.get_lang('Comment').'</th>';
}
$header .= '</tr>';
} else {
$header = parent::return_header($exercise, $counter, $score);
}
return $header;
}
}

Loading…
Cancel
Save