MDL-20636 converstion of questionlib.php and base questiontype.php, plus other cheanges required to get the question editing page to display.

This commit is contained in:
Tim Hunt 2010-12-23 08:41:01 +00:00
parent 06f8ed54fd
commit f29aeb5afd
13 changed files with 3165 additions and 2639 deletions

View file

@ -200,7 +200,7 @@ abstract class qtype_renderer extends renderer_base {
* @return string html fragment.
*/
function feedback_image($fraction, $selected = true) {
global $CFG;
global $OUTPUT;
$state = question_state::graded_state_for_fraction($fraction);
@ -218,7 +218,7 @@ abstract class qtype_renderer extends renderer_base {
}
$attributes = array(
'src' => $CFG->pixpath . '/i/' . $icon . '.gif',
'src' => $OUTPUT->pix_url('i/' . $icon),
'alt' => get_string($state->get_feedback_class(), 'question'),
'class' => 'questioncorrectnessicon',
);