MDL-20204 more html_link converstions

This commit is contained in:
Petr Skoda
2010-02-11 18:50:55 +00:00
parent 57cd3739a4
commit 9bf163146b
23 changed files with 108 additions and 125 deletions
+4 -4
View File
@@ -628,11 +628,11 @@ class question_bank_preview_action_column extends question_bank_action_column_ba
// Build the icon.
$image = $OUTPUT->pix_icon('t/preview', $this->strpreview);
$link = new html_link($this->qbank->preview_question_url($question->id), $image, array('title' => $this->strpreview));
$link = new moodle_url($this->qbank->preview_question_url($question->id));
parse_str(QUESTION_PREVIEW_POPUP_OPTIONS, $options);
$link->add_action(new popup_action('click', $link->url, 'questionpreview', $options));
echo $OUTPUT->link($link);
$action = new popup_action('click', $link, 'questionpreview', $options);
echo $OUTPUT->action_link($link, $image, $action, array('title' => $this->strpreview));
}
}