From 4265dc5171be8edd0b2a7eb8d808777a1fcc1dbd Mon Sep 17 00:00:00 2001 From: Moc Date: Sun, 24 Aug 2014 13:34:00 +0200 Subject: [PATCH] #740 - IP address in contact email now displays in IPv4 format if possible --- contact.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contact.php b/contact.php index 4b149e9d0..ca9b0f862 100644 --- a/contact.php +++ b/contact.php @@ -95,10 +95,10 @@ if(isset($_POST['send-contactus'])) } -// No errors - so proceed to email the admin and the user (if selected). + // No errors - so proceed to email the admin and the user (if selected). if(!$error) { - $body .= "\n\nIP:\t".USERIP."\n"; + $body .= "\n\nIP:\t".e107::getIPHandler()->getIP(TRUE)."\n"; if (USER) { $body .= "User:\t#".USERID." ".USERNAME."\n";