From a57db6bda337cfc11c4dfce0998ae2c68dcb4396 Mon Sep 17 00:00:00 2001 From: donal72 Date: Wed, 10 Jan 2007 00:25:51 +0000 Subject: [PATCH] Auth: Replace a hardcoded string: MDL-8069 --- auth/nntp/auth.php | 3 ++- auth/pop3/auth.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.5