From: Sascha Greuel Date: Fri, 9 May 2014 09:53:46 +0000 (+0200) Subject: Honor option "log_ip_address" X-Git-Tag: 2.1.0_Alpha_1~548^2~3^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7e57ed3b84fcaa8bbdfff8540a52b76083a971bc;p=GitHub%2FWoltLab%2FWCF.git Honor option "log_ip_address" --- diff --git a/wcfsetup/install/files/lib/form/RegisterForm.class.php b/wcfsetup/install/files/lib/form/RegisterForm.class.php index 81f9c98dd1..6286af55ea 100644 --- a/wcfsetup/install/files/lib/form/RegisterForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterForm.class.php @@ -406,7 +406,7 @@ class RegisterForm extends UserAddForm { } $this->additionalFields['languageID'] = $this->languageID; - $this->additionalFields['registrationIpAddress'] = WCF::getSession()->ipAddress; + if (LOG_IP_ADDRESS) $this->additionalFields['registrationIpAddress'] = WCF::getSession()->ipAddress; // generate activation code $addDefaultGroups = true;