]> git.mjollnir.org Git - moodle.git/commitdiff
mod-page MDL-19799 Added set_url calls, replaced deprecated functions
authorsamhemelryk <samhemelryk>
Thu, 24 Sep 2009 08:09:08 +0000 (08:09 +0000)
committersamhemelryk <samhemelryk>
Thu, 24 Sep 2009 08:09:08 +0000 (08:09 +0000)
mod/page/view.php

index 6dc7e117bf78c8bc8858570a75dcd8a6990a8d87..49e4770534b631f0a7e58f0f1d165c452e67a750 100644 (file)
@@ -70,7 +70,7 @@ if ($inpopup and $page->display == RESOURCELIB_DISPLAY_POPUP) {
     $PAGE->set_title($course->shortname.': '.$page->name);
     $PAGE->set_heading($course->fullname);
     $PAGE->set_activity_record($page);
-    $PAGE->set_button(update_module_button($cm->id, '', get_string('modulename', 'page')));
+    $PAGE->set_button($OUTPUT->update_module_button($cm->id, 'page'));
     echo $OUTPUT->header();
 
     if (!empty($options['printheading'])) {