From 615ed8dc69df551eeb35628844cff69f71ba960f Mon Sep 17 00:00:00 2001
From: nicolasconnault <nicolasconnault>
Date: Thu, 6 Aug 2009 14:14:52 +0000
Subject: [PATCH] MDL-19800 Converted all print_footer() calls

---
 login/change_password.php | 4 ++--
 login/confirm.php         | 4 ++--
 login/forgot_password.php | 2 +-
 login/index.php           | 8 ++++----
 login/logout.php          | 2 +-
 login/mnet_email.php      | 2 +-
 login/signup.php          | 2 +-
 7 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/login/change_password.php b/login/change_password.php
index f557a55e0c..4e688c190a 100644
--- a/login/change_password.php
+++ b/login/change_password.php
@@ -94,7 +94,7 @@
 
         notice($strpasswordchanged, $returnto);
 
-        print_footer();
+        echo $OUTPUT->footer();
         exit;
     }
 
@@ -112,6 +112,6 @@
         notify(get_string('forcepasswordchangenotice'));
     }
     $mform->display();
-    print_footer();
+    echo $OUTPUT->footer();
 
 ?>
diff --git a/login/confirm.php b/login/confirm.php
index 72f26f664a..b3fb6ed7df 100644
--- a/login/confirm.php
+++ b/login/confirm.php
@@ -37,7 +37,7 @@
             echo "<p>".get_string("alreadyconfirmed")."</p>\n";
             print_single_button("$CFG->wwwroot/course/", null, get_string('courses'));
             print_box_end();
-            print_footer();
+            echo $OUTPUT->footer();
             exit;
 
         } else if ($confirmed == AUTH_CONFIRM_OK) {
@@ -62,7 +62,7 @@
             echo "<p>".get_string("confirmed")."</p>\n";
             print_single_button("$CFG->wwwroot/course/", null, get_string('courses'));
             print_box_end();
-            print_footer();
+            echo $OUTPUT->footer();
             exit;
         } else {
             print_error('invalidconfirmdata');
diff --git a/login/forgot_password.php b/login/forgot_password.php
index 36441b2559..1702fc3a76 100644
--- a/login/forgot_password.php
+++ b/login/forgot_password.php
@@ -152,6 +152,6 @@ print_header($strforgotten, $strforgotten, $navigation, 'id_email');
 print_box(get_string('passwordforgotteninstructions'), 'generalbox boxwidthnormal boxaligncenter');
 $mform->display();
 
-print_footer();
+echo $OUTPUT->footer();
 
 ?>
diff --git a/login/index.php b/login/index.php
index fbbf78d807..65565b4d12 100644
--- a/login/index.php
+++ b/login/index.php
@@ -128,7 +128,7 @@
                 print_header(get_string("mustconfirm"), get_string("mustconfirm") );
                 echo $OUTPUT->heading(get_string("mustconfirm"));
                 print_simple_box(get_string("emailconfirmsent", "", $user->email), "center");
-                print_footer();
+                echo $OUTPUT->footer();
                 die;
             }
 
@@ -181,12 +181,12 @@
                 if (intval($days2expire) > 0 && intval($days2expire) < intval($userauth->config->expiration_warning)) {
                     print_header("$site->fullname: $loginsite", "$site->fullname", $navigation, '', '', true, "<div class=\"langmenu\">$langmenu</div>");
                     notice_yesno(get_string('auth_passwordwillexpire', 'auth', $days2expire), $passwordchangeurl, $urltogo);
-                    print_footer();
+                    echo $OUTPUT->footer();
                     exit;
                 } elseif (intval($days2expire) < 0 ) {
                     print_header("$site->fullname: $loginsite", "$site->fullname", $navigation, '', '', true, "<div class=\"langmenu\">$langmenu</div>");
                     notice_yesno(get_string('auth_passwordisexpired', 'auth'), $passwordchangeurl, $urltogo);
-                    print_footer();
+                    echo $OUTPUT->footer();
                     exit;
                 }
             }
@@ -284,7 +284,7 @@
 
     include("index_form.html");
 
-    print_footer();
+    echo $OUTPUT->footer();
 
 
 ?>
diff --git a/login/logout.php b/login/logout.php
index 0d9e4842c6..a276d143df 100644
--- a/login/logout.php
+++ b/login/logout.php
@@ -16,7 +16,7 @@
     } else if (!confirm_sesskey($sesskey)) {
         print_header($SITE->fullname, $SITE->fullname, 'home');
         notice_yesno(get_string('logoutconfirm'), 'logout.php', $CFG->wwwroot.'/', array('sesskey'=>sesskey()), null, 'post', 'get');
-        print_footer();
+        echo $OUTPUT->footer();
         die;
     }
 
diff --git a/login/mnet_email.php b/login/mnet_email.php
index 53c71657f2..eefe33c952 100644
--- a/login/mnet_email.php
+++ b/login/mnet_email.php
@@ -35,6 +35,6 @@ print_simple_box_start('center','50%','','20');
 <?php
 
 print_simple_box_end();
-print_footer();
+echo $OUTPUT->footer();
 
 ?>
diff --git a/login/signup.php b/login/signup.php
index 124759083e..4285d1442a 100644
--- a/login/signup.php
+++ b/login/signup.php
@@ -61,7 +61,7 @@
     print_header($newaccount, $newaccount, $navigation, $mform_signup->focus(), "", true, "<div class=\"langmenu\">$langmenu</div>");
     
     $mform_signup->display();
-    print_footer();
+    echo $OUTPUT->footer();
 
 
 ?>
-- 
2.39.5