From: toyomoyo Date: Tue, 11 Jul 2006 03:36:13 +0000 (+0000) Subject: merged changing of feedback for the function that handles user table X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2256c10d362c1695c06bba590c59c0c0d4387d11;p=moodle.git merged changing of feedback for the function that handles user table --- 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'); + } } } }