mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
Replaces deprecated update_module_button()
This commit is contained in:
parent
6405b2549c
commit
088e75ca19
@ -46,7 +46,7 @@ require_login($course, false, $cm);
|
||||
$PAGE->set_url('mod/workshop/develtools.php', array('cmid' => $cm->id));
|
||||
$PAGE->set_title($workshop->name);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->set_button(update_module_button($cm->id, $course->id, get_string('modulename', 'workshop')));
|
||||
$PAGE->set_button($OUTPUT->update_module_button($cm->id, 'workshop'));
|
||||
|
||||
$wsoutput = $PAGE->theme->get_renderer('mod_workshop', $PAGE);
|
||||
|
||||
|
@ -68,7 +68,7 @@ if ($PAGE->user_allowed_editing()) {
|
||||
$editblocks->url = new moodle_url($PAGE->url, array('edit' => $PAGE->user_is_editing() ? 'off' : 'on'));
|
||||
$buttons[] = $OUTPUT->button($editblocks);
|
||||
}
|
||||
$buttons[] = update_module_button($cm->id, $course->id, get_string('modulename', 'workshop'));
|
||||
$buttons[] = $OUTPUT->update_module_button($cm->id, 'workshop');
|
||||
$PAGE->set_button(implode('', $buttons));
|
||||
|
||||
// todo navigation will be changed yet for Moodle 2.0
|
||||
@ -103,6 +103,7 @@ foreach ($assessments as $assessment) {
|
||||
}
|
||||
echo "</ol></li>" . "\n";
|
||||
echo "</ol>\n";
|
||||
echo "<p><a href=\"develtools.php?cmid={$cm->id}\">Workshop development tools</a></p>\n";
|
||||
echo $OUTPUT->box_end();
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
|
Loading…
x
Reference in New Issue
Block a user