mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
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:
parent
06f8ed54fd
commit
f29aeb5afd
13 changed files with 3165 additions and 2639 deletions
|
@ -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',
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue