From ba2a49e9875eda489385e370bb9f2259779caa7b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 2 Dec 2014 19:22:48 +0100 Subject: Tweaks and fixes --- inc/property.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inc/property.inc.php') diff --git a/inc/property.inc.php b/inc/property.inc.php index dd70b8d4..6a639dd2 100644 --- a/inc/property.inc.php +++ b/inc/property.inc.php @@ -57,10 +57,11 @@ class Property return self::get('server-ip', 'none'); } - public static function setServerIp($value) + public static function setServerIp($value, $automatic = false) { if ($value === self::getServerIp()) return false; + EventLog::info('Server IP changed from ' . self::getServerIp() . ' to ' . $value . ($automatic ? ' (auto detected)' : '')); self::set('server-ip', $value); Event::serverIpChanged(); } -- cgit v1.2.3-55-g7522