diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 6c33170bd..d36e31f0b 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -65,26 +65,26 @@ class Pref_Prefs extends Handler_Protected { $con_pw = $_POST["confirm_password"]; if ($old_pw == "") { - print "ERROR: ".__("Old password cannot be blank."); + print "ERROR: ".format_error("Old password cannot be blank."); return; } if ($new_pw == "") { - print "ERROR: ".__("New password cannot be blank."); + print "ERROR: ".format_error("New password cannot be blank."); return; } if ($new_pw != $con_pw) { - print "ERROR: ".__("Entered passwords do not match."); + print "ERROR: ".format_error("Entered passwords do not match."); return; } $authenticator = PluginHost::getInstance()->get_plugin($_SESSION["auth_module"]); if (method_exists($authenticator, "change_password")) { - print $authenticator->change_password($_SESSION["uid"], $old_pw, $new_pw); + print format_notice($authenticator->change_password($_SESSION["uid"], $old_pw, $new_pw)); } else { - print "ERROR: ".__("Function not supported by authentication module."); + print "ERROR: ".format_error("Function not supported by authentication module."); } } @@ -244,6 +244,8 @@ class Pref_Prefs extends Handler_Protected { print "