]> git.mjollnir.org Git - moodle.git/commitdiff
data MDL-19806 Upgraded deprecated calls
authorsamhemelryk <samhemelryk>
Fri, 16 Oct 2009 03:19:50 +0000 (03:19 +0000)
committersamhemelryk <samhemelryk>
Fri, 16 Oct 2009 03:19:50 +0000 (03:19 +0000)
mod/data/view.php

index f08be89b17a256d9ab2f56865e108a25c5800cbc..40c2ce88f0edfbaae8a6369f6bcae94a2b181bd3 100755 (executable)
     // The code will be much nicer than this eventually.
     $title = $course->shortname.': ' . format_string($data->name);
 
-    $buttons = '<table><tr><td>'.update_module_button($cm->id, $course->id, get_string('modulename', 'data')).'</td>';
+    $buttons = '<table><tr><td>'.$OUTPUT->update_module_button($cm->id, $cm->modname).'</td>';
     if ($PAGE->user_allowed_editing() && !empty($CFG->showblocksonmodpages)) {
         $buttons .= '<td><form '.$CFG->frametarget.' method="get" action="view.php"><div>'.
             '<input type="hidden" name="id" value="'.$cm->id.'" />'.