Move status config to settings

This commit is contained in:
slawkens
2023-07-20 18:12:22 +02:00
parent 55a5ccdd1e
commit a8a2c72381
5 changed files with 71 additions and 26 deletions

View File

@@ -57,7 +57,7 @@ class OTS_ServerInfo
private function send(OTS_Buffer $packet)
{
// connects to server
$socket = @fsockopen($this->server, $this->port, $error, $message, config('status_timeout'));
$socket = @fsockopen($this->server, $this->port, $error, $message, setting('core.status_timeout'));
// if connected then checking statistics
if($socket)