$string['quizwillopen'] = 'This quiz will open $a';
$string['random'] = 'Random Question';
$string['randomcreate'] = 'Create Random Questions';
-$string['randomfromcategory'] = 'Random question from all of category:';
-$string['randomfromcategoryonly'] = 'Random question from just category:';
+$string['randomfromcategory'] = 'Random question from category:';
$string['randomnosubcat'] = 'Questions from this category only, not its subcategories.';
$string['randomsamatch'] = 'Random Short-Answer Matching';
$string['randomsamatchcreate'] = 'Create Random Short-Answer Matching questions';
echo '<div class="randomquestionfromcategory">';
print_question_icon($question);
print_random_option_icon($question);
- if (!empty($question->questiontext)) {
- $string = 'randomfromcategory';
- } else {
- $string = 'randomfromcategoryonly';
- }
- echo ' ' . get_string($string, 'quiz') . '</div>';
+ echo ' ' . get_string('randomfromcategory', 'quiz') . '</div>';
$a = new stdClass;
$a->arrow = $THEME->rarrow;
$tooltip = get_string('randomnosubcat', 'quiz');
}
echo '<img src="' . $CFG->pixpath . '/i/' . $icon . '.png" alt="' .
- $tooltip . '" title="' . $tooltip . '" />';
+ $tooltip . '" title="' . $tooltip . '" class="uihint" />';
}