From bc77686a080e10b31c669d306a597c367129edd1 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Tue, 11 Jul 2006 03:35:19 +0000 Subject: [PATCH] changed feedback in the function that handles user table --- admin/utfdbmigrate.php | 2 +- lib/db/migrate2utf8.php | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/admin/utfdbmigrate.php b/admin/utfdbmigrate.php index d91d36a28c2..5f0fca52732 100755 --- a/admin/utfdbmigrate.php +++ b/admin/utfdbmigrate.php @@ -387,7 +387,7 @@ function db_migrate2utf8(){ //Eloy: Perhaps some type of limit parameter here $tablefunction = 'migrate2utf8_'.$dbtablename; } if ($CFG->dbtype=='mysql' && function_exists($tablefunction)) { - $tablefunction($dbtable['#']['FIELDS'][0]['#']['FIELD'], $crash, $debug, $maxrecords); // execute it. + $tablefunction($dbtable['#']['FIELDS'][0]['#']['FIELD'], $crash, $debug, $maxrecords, $done, $tablestoconvert); // execute it. } else { /****************************************************** diff --git a/lib/db/migrate2utf8.php b/lib/db/migrate2utf8.php index 8e321836607..f910981e80a 100755 --- a/lib/db/migrate2utf8.php +++ b/lib/db/migrate2utf8.php @@ -1,7 +1,7 @@ id; - } + + if (($processedrecords) % 1000 == 0) { + print_progress($done, $tablestoconvert, 5, 1, 'Processing: user'); + } } } }