workshop in reply to MDL-20787 switching to pix_url()

This commit is contained in:
David Mudrak
2010-01-04 18:29:19 +00:00
parent 581878b8fa
commit 810941b6a0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ class workshopallocation_manual_renderer extends plugin_renderer_base {
*/
protected function remove_allocation_icon($link) {
$icon = new moodle_action_icon();
$icon->image->src = $this->old_icon_url('i/cross_red_big');
$icon->image->src = $this->output->pix_url('i/cross_red_big');
$icon->image->alt = 'X';
$icon->link->url = $link;
+1 -1
View File
@@ -317,7 +317,7 @@ class mod_workshop_renderer extends plugin_renderer_base {
if ($summary->example->weight == 1) {
// dirty hack to guess if the current user is example manager or not
$icon = new moodle_action_icon();
$icon->image->src = $this->old_icon_url('i/edit');
$icon->image->src = $this->pix_url('i/edit');
$icon->image->alt = get_string('edit');
$icon->link->url = new moodle_url($CFG->wwwroot . '/mod/workshop/exsubmission.php',
array('cmid' => $this->page->context->instanceid, 'id' => $summary->example->id, 'edit' => 'on'));