From 0a6be7d149adfe4e8702538d8066e4b7c70f2469 Mon Sep 17 00:00:00 2001 From: kink Date: Fri, 20 May 2005 10:34:40 +0000 Subject: [PATCH] Tweak IMAP connection error display (#1203154). git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9428 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 1 + functions/imap_general.php | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index dfaf8e4a..d056282a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -351,6 +351,7 @@ Version 1.5.1 -- CVS - Added dovecot preset to configuration utility. - Modified mercury32 preset in order to remove INBOX prefix in mercury32 4.01. - Added peardb backend to change_password plugin. + - Tweak IMAP connection error display (#1203154). Version 1.5.0 - 2 February 2004 ------------------------------- diff --git a/functions/imap_general.php b/functions/imap_general.php index 0a4aa5fb..eca66b88 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -645,7 +645,8 @@ function sqimap_create_stream($server,$port,$tls=false) { '
'. _("TLS is enabled, but this version of PHP does not support TLS sockets, or is missing the openssl extension."). '

'. - _("Please contact your system administrator and report this error.") ); + _("Please contact your system administrator and report this error."), + sprintf(_("Error connecting to IMAP server: %s."), $server)); } } @@ -656,7 +657,8 @@ function sqimap_create_stream($server,$port,$tls=false) { set_up_language($squirrelmail_language, true); require_once(SM_PATH . 'functions/display_messages.php'); logout_error( sprintf(_("Error connecting to IMAP server: %s."), $server). - "
\r\n$error_number : $error_string
\r\n" ); + "
\r\n$error_number : $error_string
\r\n", + sprintf(_("Error connecting to IMAP server: %s."), $server) ); exit; } $server_info = fgets ($imap_stream, 1024); @@ -1167,4 +1169,4 @@ function map_yp_alias($username) { return chop(substr($yp, strlen($username)+1)); } -?> \ No newline at end of file +?> -- 2.25.1