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'); + } } } }