From: nicolasconnault Date: Thu, 6 Aug 2009 14:19:50 +0000 (+0000) Subject: MDL-19825 Converted all print_footer() calls X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f24ca3ce01fadd853c1b6b01e48d5d28e06b6e1a;p=moodle.git MDL-19825 Converted all print_footer() calls --- diff --git a/user/groupaddnote.php b/user/groupaddnote.php index 823880e763..f3801f4592 100644 --- a/user/groupaddnote.php +++ b/user/groupaddnote.php @@ -53,7 +53,7 @@ print_header("$course->shortname: ".get_string('extendenrol'), $course->fullname // this will contain all available the based On select options, but we'll disable some on them on a per user basis -echo $OUPTUT->heading($straddnote); +echo $OUTPUT->heading($straddnote); echo '
'; echo '
'; echo ''; @@ -93,4 +93,4 @@ choose_from_menu($state_names, 'state', empty($state) ? NOTES_STATE_PUBLIC : $st echo '

'; echo '
'; -print_footer($course); +echo $OUTPUT->footer(); diff --git a/user/messageselect.php b/user/messageselect.php index 386edb74ea..944c305fa5 100644 --- a/user/messageselect.php +++ b/user/messageselect.php @@ -82,7 +82,7 @@ } else { $heading = get_string('addedrecips','moodle',$count); } - echo $OUPTUT->heading($heading); + echo $OUTPUT->heading($heading); } if (!empty($messagebody) && !$edit && !$deluser && ($preview || $send)) { @@ -103,15 +103,15 @@ $good = $good && message_post_message($USER,$user,$messagebody,$format,'direct'); } if (!empty($good)) { - echo $OUPTUT->heading(get_string('messagedselectedusers')); + echo $OUTPUT->heading(get_string('messagedselectedusers')); unset($SESSION->emailto[$id]); unset($SESSION->emailselect[$id]); } else { - echo $OUPTUT->heading(get_string('messagedselectedusersfailed')); + echo $OUTPUT->heading(get_string('messagedselectedusersfailed')); } echo '

'.get_string('backtoparticipants').'

'; } - print_footer(); + echo $OUTPUT->footer(); exit; } else { notify(get_string('nousersyet')); @@ -129,7 +129,7 @@ require("message.html"); } - print_footer(); + echo $OUTPUT->footer(); ?> diff --git a/user/portfoliologs.php b/user/portfoliologs.php index e3cfa2c785..9d9023a39c 100644 --- a/user/portfoliologs.php +++ b/user/portfoliologs.php @@ -55,7 +55,7 @@ if (count($queued) > 0) { ); unset($e); // this could potentially be quite big, so free it. } - echo $OUPTUT->heading(get_string('queuesummary', 'portfolio')); + echo $OUTPUT->heading(get_string('queuesummary', 'portfolio')); print_table($table); } $logcount = $DB->count_records('portfolio_log', array('userid' => $USER->id)); @@ -84,13 +84,13 @@ if ($logcount > 0) { userdate($log->time), ); } - echo $OUPTUT->heading(get_string('logsummary', 'portfolio')); + echo $OUTPUT->heading(get_string('logsummary', 'portfolio')); print_paging_bar($logcount, $page, $perpage, $CFG->wwwroot . '/user/portfoliologs.php?'); print_table($table); print_paging_bar($logcount, $page, $perpage, $CFG->wwwroot . '/user/portfoliologs.php?'); } -print_footer(); +echo $OUTPUT->footer(); ?> diff --git a/user/profile/definelib.php b/user/profile/definelib.php index 064de8dea6..d34177fed8 100644 --- a/user/profile/definelib.php +++ b/user/profile/definelib.php @@ -438,9 +438,9 @@ function profile_edit_category($id, $redirect) { /// Print the page admin_externalpage_print_header(); - echo $OUPTUT->heading($strheading); + echo $OUTPUT->heading($strheading); $categoryform->display(); - admin_externalpage_print_footer(); + echo $OUTPUT->footer(); die; } @@ -482,9 +482,9 @@ function profile_edit_field($id, $datatype, $redirect) { /// Print the page admin_externalpage_print_header(); - echo $OUPTUT->heading($strheading); + echo $OUTPUT->heading($strheading); $fieldform->display(); - admin_externalpage_print_footer(); + echo $OUTPUT->footer(); die; } } diff --git a/user/profile/index.php b/user/profile/index.php index 72b04c80cf..b27670db62 100644 --- a/user/profile/index.php +++ b/user/profile/index.php @@ -52,9 +52,9 @@ switch ($action) { $fieldcount = $DB->count_records('user_info_field', array('categoryid'=>$id)); $optionsyes = array ('id'=>$id, 'confirm'=>1, 'action'=>'deletecategory', 'sesskey'=>sesskey()); admin_externalpage_print_header(); - echo $OUPTUT->heading('profiledeletecategory', 'admin'); + echo $OUTPUT->heading('profiledeletecategory', 'admin'); notice_yesno(get_string('profileconfirmcategorydeletion', 'admin', $fieldcount), $redirect, $redirect, $optionsyes, null, 'post', 'get'); - admin_externalpage_print_footer(); + echo $OUTPUT->footer(); die; break; case 'deletefield': @@ -70,9 +70,9 @@ switch ($action) { $datacount = $DB->count_records('user_info_data', array('fieldid'=>$id)); $optionsyes = array ('id'=>$id, 'confirm'=>1, 'action'=>'deletefield', 'sesskey'=>sesskey()); admin_externalpage_print_header(); - echo $OUPTUT->heading('profiledeletefield', 'admin'); + echo $OUTPUT->heading('profiledeletefield', 'admin'); notice_yesno(get_string('profileconfirmfielddeletion', 'admin', $datacount), $redirect, $redirect, $optionsyes, null, 'post', 'get'); - admin_externalpage_print_footer(); + echo $OUTPUT->footer(); die; break; case 'editfield': @@ -94,7 +94,7 @@ switch ($action) { /// Print the header admin_externalpage_print_header(); -echo $OUPTUT->heading(get_string('profilefields', 'admin')); +echo $OUTPUT->heading(get_string('profilefields', 'admin')); /// Check that we have at least one category defined if ($DB->count_records('user_info_category') == 0) { @@ -122,7 +122,7 @@ foreach ($categories as $category) { } } - echo $OUPTUT->heading(format_string($category->name) .' '.profile_category_icons($category)); + echo $OUTPUT->heading(format_string($category->name) .' '.profile_category_icons($category)); if (count($table->data)) { print_table($table); } else { @@ -147,7 +147,7 @@ print_single_button('index.php', $options, get_string('profilecreatecategory', ' echo ''; -admin_externalpage_print_footer(); +echo $OUTPUT->footer(); die; diff --git a/user/view.php b/user/view.php index c3b0e35f83..bd915d1e45 100644 --- a/user/view.php +++ b/user/view.php @@ -92,7 +92,7 @@ print_header("$strpersonalprofile: ", "$strpersonalprofile: ", $navigation, "", "", true, " ", navmenu($course)); echo $OUTPUT->heading(get_string('usernotavailable', 'error')); - print_footer($course); + echo $OUTPUT->footer(); exit; } } else { // Normal course @@ -112,10 +112,10 @@ $navlinks[] = array('name' => $struser, 'link' => null, 'type' => 'misc'); $navigation = build_navigation($navlinks); print_header("$strpersonalprofile: ", "$strpersonalprofile: ", $navigation, "", "", true, " ", navmenu($course)); - echo $OUPTUT->heading(get_string('notenrolledprofile')); + echo $OUTPUT->heading(get_string('notenrolledprofile')); } print_continue($_SERVER['HTTP_REFERER']); - print_footer($course); + echo $OUTPUT->footer(); exit; } } @@ -148,16 +148,16 @@ if (($course->id != SITEID) and ! isguest() ) { // Need to have access to a course to see that info if (!has_capability('moodle/course:view', $coursecontext, $user->id)) { - echo $OUPTUT->heading(get_string('notenrolled', '', $fullname)); - print_footer($course); + echo $OUTPUT->heading(get_string('notenrolled', '', $fullname)); + echo $OUTPUT->footer(); die; } } if ($user->deleted) { - echo $OUPTUT->heading(get_string('userdeleted')); + echo $OUTPUT->heading(get_string('userdeleted')); if (!has_capability('moodle/user:update', $coursecontext)) { - print_footer($course); + echo $OUTPUT->footer(); die; } } @@ -540,11 +540,11 @@ if ($CFG->debugdisplay && debugging('', DEBUG_DEVELOPER) && $USER->id == $user->id) { // Show user object echo '
'; - echo $OUPTUT->heading('DEBUG MODE: User session variables'); + echo $OUTPUT->heading('DEBUG MODE: User session variables'); print_object($USER); } - print_footer($course); + echo $OUTPUT->footer(); /// Functions ///////