mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
mod-folder MDL-19799 Updated print_header_simple and build_navigation to OUTPUT and PAGE equivalents
This commit is contained in:
parent
ef8869c7fe
commit
5647cde8d0
@ -44,8 +44,8 @@ $strlastmodified = get_string('lastmodified');
|
||||
$PAGE->set_url('mod/folder/index.php', array('id' => $course->id));
|
||||
$PAGE->set_title($course->shortname.': '.$strfolders);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$navlinks = array(array('name' => $strfolders, 'link' => '', 'type' => 'activityinstance'));
|
||||
echo $OUTPUT->header(build_navigation($navlinks), navmenu($course));
|
||||
$PAGE->navbar->add($strfolders);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
if (!$folders = get_all_instances_in_course('folder', $course)) {
|
||||
notice(get_string('thereareno', 'moodle', $strfolders), "$CFG->wwwroot/course/view.php?id=$course->id");
|
||||
|
@ -54,7 +54,7 @@ $PAGE->set_title($course->shortname.': '.$folder->name);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->set_activity_record($folder);
|
||||
$PAGE->set_button(update_module_button($cm->id, '', get_string('modulename', 'folder')));
|
||||
echo $OUTPUT->header(build_navigation('', $cm), navmenu($course, $cm));
|
||||
echo $OUTPUT->header();
|
||||
|
||||
echo $OUTPUT->heading(format_string($folder->name), 2);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user