From: donal72 Date: Wed, 10 Jan 2007 00:25:51 +0000 (+0000) Subject: Auth: Replace a hardcoded string: MDL-8069 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a57db6bda337cfc11c4dfce0998ae2c68dcb4396;p=moodle.git Auth: Replace a hardcoded string: MDL-8069 --- diff --git a/auth/nntp/auth.php b/auth/nntp/auth.php index a86d1cd4c9..39ef475688 100644 --- a/auth/nntp/auth.php +++ b/auth/nntp/auth.php @@ -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; diff --git a/auth/pop3/auth.php b/auth/pop3/auth.php index 1770fc7a7f..41ebc120dd 100644 --- a/auth/pop3/auth.php +++ b/auth/pop3/auth.php @@ -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;