Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Webslice
ISPConfig 3
Commits
5f221a95
Commit
5f221a95
authored
Sep 22, 2011
by
tbrehm
Browse files
Fixed bugs in updater.
parent
dba68fcd
Changes
3
Hide whitespace changes
Inline
Side-by-side
install/autoupdate.php
View file @
5f221a95
...
...
@@ -156,6 +156,7 @@ prepareDBDump();
//* initialize the database
$inst
->
db
=
new
db
();
$inst
->
db
->
dbName
=
$conf
[
"mysql"
][
"database"
];
/*
* The next line is a bit tricky!
...
...
install/lib/update.lib.php
View file @
5f221a95
...
...
@@ -286,7 +286,8 @@ function updateDbAndIni() {
}
$new_ini
=
array_to_ini
(
$tpl_ini_array
);
$inst
->
db
->
query
(
"UPDATE server SET config = '"
.
mysql_real_escape_string
(
$new_ini
)
.
"' WHERE server_id = "
.
$conf
[
'server_id'
]);
$sql
=
"UPDATE server SET config = '"
.
mysql_real_escape_string
(
$new_ini
)
.
"' WHERE server_id = "
.
$conf
[
'server_id'
];
$inst
->
db
->
query
(
$sql
);
unset
(
$old_ini_array
);
unset
(
$tpl_ini_array
);
unset
(
$new_ini
);
...
...
install/update.php
View file @
5f221a95
...
...
@@ -152,6 +152,7 @@ prepareDBDump();
//* initialize the database
$inst
->
db
=
new
db
();
$inst
->
db
->
dbName
=
$conf
[
"mysql"
][
"database"
];
//* initialize the master DB, if we have a multiserver setup
if
(
$conf
[
'mysql'
][
'master_slave_setup'
]
==
'y'
)
{
...
...
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