diff options
Diffstat (limited to 'inc/property.inc.php')
-rw-r--r-- | inc/property.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } |