|
@@ -1913,9 +1913,21 @@ abstract class Question
|
|
|
$header .= Display::div($this->description, array('class' => 'question_description'));
|
|
|
} else {
|
|
|
if ($score['pass'] == true) {
|
|
|
- $message = Display::div(sprintf(get_lang('ReadingQuestionCongratsSpeedXReachedForYWords'), $this->speeds[$this->level], $this->getWordsCount()));
|
|
|
+ $message = Display::div(
|
|
|
+ sprintf(
|
|
|
+ get_lang('ReadingQuestionCongratsSpeedXReachedForYWords'),
|
|
|
+ ReadingComprehension::$speeds[$this->level],
|
|
|
+ $this->getWordsCount()
|
|
|
+ )
|
|
|
+ );
|
|
|
} else {
|
|
|
- $message = Display::div(sprintf(get_lang('ReadingQuestionCongratsSpeedXNotReachedForYWords'), $this->speeds[$this->level], $this->getWordsCount()));
|
|
|
+ $message = Display::div(
|
|
|
+ sprintf(
|
|
|
+ get_lang('ReadingQuestionCongratsSpeedXNotReachedForYWords'),
|
|
|
+ ReadingComprehension::$speeds[$this->level],
|
|
|
+ $this->getWordsCount()
|
|
|
+ )
|
|
|
+ );
|
|
|
}
|
|
|
$header .= $message.'<br />';
|
|
|
}
|