Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed feedback in the function that handles user table

  • Loading branch information...
commit bc77686a080e10b31c669d306a597c367129edd1 1 parent 720669a
toyomoyo authored
Showing with 6 additions and 5 deletions.
  1. +1 −1  admin/utfdbmigrate.php
  2. +5 −4 lib/db/migrate2utf8.php
View
2  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 {
/******************************************************
View
9 lib/db/migrate2utf8.php
@@ -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');
+ }
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.