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
lolo888
ISPConfig 3
Commits
b2cdd5f1
Commit
b2cdd5f1
authored
Sep 26, 2010
by
tbrehm
Browse files
No commit message
No commit message
parent
4b72c51b
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
b2cdd5f1
...
...
@@ -234,9 +234,10 @@ class installer_base {
//** Get the database version number based on the patchfiles
$found
=
true
;
$current_db_version
=
1
;
while
(
$found
==
true
)
{
$next_db_version
=
intval
(
$current_db_version
+
1
);
$patch_filename
=
realpath
(
dirname
(
__FILE__
)
.
'/../
../
'
)
.
'/sql/incremental/upd_'
.
str_pad
(
$next_db_version
,
4
,
'0'
,
STR_PAD_LEFT
)
.
'.sql'
;
$patch_filename
=
realpath
(
dirname
(
__FILE__
)
.
'/../'
)
.
'/sql/incremental/upd_'
.
str_pad
(
$next_db_version
,
4
,
'0'
,
STR_PAD_LEFT
)
.
'.sql'
;
if
(
is_file
(
$patch_filename
))
{
$current_db_version
=
$next_db_version
;
}
else
{
...
...
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