Commit eed9fb8f authored by Sergio's avatar Sergio
Browse files

display IPs for default webserver

parent a9e6315b
...@@ -458,9 +458,13 @@ class page_action extends tform_actions { ...@@ -458,9 +458,13 @@ class page_action extends tform_actions {
} }
$server_id = intval(@$this->dataRecord["server_id"]); $server_id = intval(@$this->dataRecord["server_id"]);
} else { } else {
// Get the first server ID $settings = $app->getconf->get_global_config('sites');
$tmp = $app->db->queryOneRecord("SELECT server_id FROM server WHERE web_server = 1 ORDER BY server_name LIMIT 0,1"); $server_id = intval($settings['default_webserver']);
$server_id = intval($tmp['server_id']); if (!$server_id) {
// Get the first server ID
$tmp = $app->db->queryOneRecord("SELECT server_id FROM server WHERE web_server = 1 ORDER BY server_name LIMIT 0,1");
$server_id = intval($tmp['server_id']);
}
} }
//* get global web config //* get global web config
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment