# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/login/change_password.php
--- moodle/login/change_password.php Base (1.62.2.2)
+++ moodle/login/change_password.php Locally Modified (Based On 1.62.2.2)
@@ -105,12 +105,15 @@
     $navlinks[] = array('name' => $fullname, 'link' => "$CFG->wwwroot/user/view.php?id=$USER->id&amp;course=$course->id", 'type' => 'misc');
     $navlinks[] = array('name' => $strchangepassword, 'link' => null, 'type' => 'misc');
     $navigation = build_navigation($navlinks);
-
+    //turn off pop-up messaging window temporarly.
+    $hasmessage = $CFG->messaging;
+    $CFG->messaging = 0;
     print_header($strchangepassword, $strchangepassword, $navigation);
     if (get_user_preferences('auth_forcepasswordchange')) {
         notify(get_string('forcepasswordchangenotice'));
     }
     $mform->display();
     print_footer();
-
+    //set pop-up messaging window to its original stage.
+    $CFG->messaging = $hasmessage;
 ?>
