]> git.mjollnir.org Git - moodle.git/commitdiff
workshop in reply to MDL-20787 switching to pix_url()
authorDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 18:29:19 +0000 (18:29 +0000)
committerDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 18:29:19 +0000 (18:29 +0000)
mod/workshop/allocation/manual/renderer.php
mod/workshop/renderer.php

index 711e6ef2644c69e3d4eb9da1137d19e3e50e0569..e471d375c1a3b85acd2509f53f3c2b218649030f 100644 (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;
 
index ebae07f376cfc17ffa3e824a12fba314bf393aa0..0cb462b041c29e9faa1e02731da71d2318534164 100644 (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'));