Auth: Replace a hardcoded string: MDL-8069

This commit is contained in:
donal72 2007-01-10 00:25:51 +00:00
parent a1229bdd39
commit a57db6bda3
2 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,8 @@ class auth_plugin_nntp {
*/
function user_login ($username, $password) {
if (! function_exists('imap_open')) {
error("Cannot use NNTP authentication. The PHP IMAP module is not installed.");
print_error('auth_nntpnotinstalled','auth');
exit;
}
global $CFG;

View File

@ -42,7 +42,8 @@ class auth_plugin_pop3 {
*/
function user_login($username, $password) {
if (! function_exists('imap_open')) {
error("Cannot use POP3 authentication. The PHP IMAP module is not installed.");
print_error('auth_pop3notinstalled','auth');
exit;
}
global $CFG;