Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
b4f3f515
Commit
b4f3f515
authored
Aug 22, 2014
by
Marius Cramer
Browse files
Merge branch 'fix_initial_ip_select' into 'master'
Fix initial ip select See merge request !122
parents
a7f96ca5
eed9fb8f
Changes
1
Show whitespace changes
Inline
Side-by-side
interface/web/sites/web_vhost_domain_edit.php
View file @
b4f3f515
...
...
@@ -458,10 +458,14 @@ class page_action extends tform_actions {
}
$server_id
=
intval
(
@
$this
->
dataRecord
[
"server_id"
]);
}
else
{
$settings
=
$app
->
getconf
->
get_global_config
(
'sites'
);
$server_id
=
intval
(
$settings
[
'default_webserver'
]);
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
$web_config
=
$app
->
getconf
->
get_server_config
(
$server_id
,
'web'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment