diff --git a/build-base.php b/build-base.php
index 56860774e..1abbe7642 100644
--- a/build-base.php
+++ b/build-base.php
@@ -36,7 +36,7 @@ while (!feof($sql_fh)) {
}
elseif ( abs($limit-$_REQUEST['offset']) > 6) {
$_SESSION['offset'] = $limit;
- echo 'Installing, please wait..'.date('r').'';
+ $GLOBALS['refresh'] = 'Installing, please wait..'.date('r').'';
return;
} else {
echo 'Step #'.$limit.' ...'.PHP_EOL;
diff --git a/html/install.php b/html/install.php
index b3775d2a8..bec581e35 100644
--- a/html/install.php
+++ b/html/install.php
@@ -309,7 +309,6 @@ elseif($stage == "2") {
Importing MySQL DB - Do not close this page or interrupt the import
-
".$_SESSION['out']."
";
?>
-
diff --git a/includes/sql-schema/update.php b/includes/sql-schema/update.php
index 7bbe7fc3b..837794abf 100644
--- a/includes/sql-schema/update.php
+++ b/includes/sql-schema/update.php
@@ -91,6 +91,7 @@ if ($tmp[0] <= $db_rev) {
return;
}
+$limit = @$limit?: $_REQUEST['offset'];
foreach ($filelist as $file) {
list($filename,$extension) = explode('.', $file, 2);
if ($filename > $db_rev) {
@@ -99,7 +100,7 @@ foreach ($filelist as $file) {
$limit++;
if ( abs($limit-$_REQUEST['offset']) > 6) {
$_SESSION['offset'] = $limit;
- echo 'Updating, please wait..'.date('r').'';
+ $GLOBALS['refresh'] = 'Updating, please wait..'.date('r').'';
return;
}
}