From 2256c10d362c1695c06bba590c59c0c0d4387d11 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Tue, 11 Jul 2006 03:36:13 +0000 Subject: [PATCH] merged changing of feedback for 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 541f9cbc29..88bd401728 100755 --- a/admin/utfdbmigrate.php +++ b/admin/utfdbmigrate.php @@ -386,7 +386,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 8e32183660..f910981e80 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'); + } } } } -- 2.39.5