From 69a1e4f7b1a601041a2f36c6c99ed410d663ab34 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Wed, 25 Nov 2015 02:52:59 -0500 Subject: [PATCH] rcube_parse_host() -> rcube_utils::parse_host() --- program/include/rcmail_install.php | 2 +- installer/test.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/installer/test.php b/installer/test.php index bb76482..237e8df 100644 --- a/installer/test.php +++ b/installer/test.php @@ -246,7 +246,7 @@ <h3>Test SMTP config</h3> <p> -Server: <?php echo rcube_parse_host($RCI->getprop('smtp_server', 'PHP mail()')); ?><br /> +Server: <?php echo rcube_utils::parse_host($RCI->getprop('smtp_server', 'PHP mail()')); ?><br /> Port: <?php echo $RCI->getprop('smtp_port'); ?><br /> <?php @@ -310,7 +310,7 @@ $send_headers = $mail_object->headers($headers); $SMTP = new rcube_smtp(); - $SMTP->connect(rcube_parse_host($RCI->getprop('smtp_server')), + $SMTP->connect(rcube_utils::parse_host($RCI->getprop('smtp_server')), $RCI->getprop('smtp_port'), $CONFIG['smtp_user'], $CONFIG['smtp_pass']); $status = $SMTP->send_mail($headers['From'], $headers['To'], diff --git a/program/include/rcmail_install.php b/program/include/rcmail_install.php index 02f1565..af27e29 100644 --- a/program/include/rcmail_install.php +++ b/program/include/rcmail_install.php @@ -522,7 +522,7 @@ foreach ($default_hosts as $key => $name) { if (!empty($name)) - $out[] = rcube_parse_host(is_numeric($key) ? $name : $key); + $out[] = rcube_utils::parse_host(is_numeric($key) ? $name : $key); } return $out; -- Gitblit v1.9.1