]> git.mjollnir.org Git - moodle.git/commitdiff
Auth: Replace a hardcoded string: MDL-8069
authordonal72 <donal72>
Wed, 10 Jan 2007 00:25:51 +0000 (00:25 +0000)
committerdonal72 <donal72>
Wed, 10 Jan 2007 00:25:51 +0000 (00:25 +0000)
auth/nntp/auth.php
auth/pop3/auth.php

index a86d1cd4c9b17f32eab51412f9a1375fb08cc318..39ef4756885aff738fa8640d0bd1de2ff8ccedf3 100644 (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;
index 1770fc7a7f62d4b3cf22f2fd890b9c2144d0ad5d..41ebc120ddb07e90301479e0cbe6c7447e8948dd 100644 (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;