changed feedback in the function that handles user table

This commit is contained in:
toyomoyo
2006-07-11 03:35:19 +00:00
parent 720669a6db
commit bc77686a08
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -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 {
/******************************************************
+5 -4
View File
@@ -1,7 +1,7 @@
<?php // $Id$
// This is a one-shot function that converts an entire table on row basis.
function migrate2utf8_user($fields, $crash, $debug, $maxrecords) {
function migrate2utf8_user($fields, $crash, $debug, $maxrecords, $done, $tablestoconvert) {
global $CFG, $db, $processedrecords, $globallang;
@@ -124,9 +124,10 @@ function migrate2utf8_user($fields, $crash, $debug, $maxrecords) {
$processedrecords++;
//print some output once in a while
if (($processedrecords) % 5000 == 0) {
echo 'Processing...'.$dbtablename.'...'.$fieldname.'...'.$record->id;
}
if (($processedrecords) % 1000 == 0) {
print_progress($done, $tablestoconvert, 5, 1, 'Processing: user');
}
}
}
}