]> git.mjollnir.org Git - moodle.git/commitdiff
fix for 5305
authortoyomoyo <toyomoyo>
Fri, 28 Apr 2006 01:55:12 +0000 (01:55 +0000)
committertoyomoyo <toyomoyo>
Fri, 28 Apr 2006 01:55:12 +0000 (01:55 +0000)
admin/utfdbmigrate.php

index 7aaebbdb85366253f07976b73d033e1802a476d0..03257f4f2bd36948eb64ea104d53d02ead5519dc 100755 (executable)
@@ -171,7 +171,8 @@ function db_migrate2utf8(){   //Eloy: Perhaps some type of limit parameter here
                                                          //Then, all those errors, should be converted to
                                                          //mtrace() and return 0. (showing the current 
                                                          //table/field/recordid)
-    global $db, $CFG;
+
+    global $db, $CFG, $dbtablename, $fieldname, $record;
     $debug = ($CFG->debug > 7);
     
     @set_time_limit(0);
@@ -837,9 +838,9 @@ function get_user_lang($userid) {
 
 // a placeholder for now
 function log_the_problem_somewhere() {  //Eloy: Nice function, perhaps we could use it, perhpas no. :-)
-    global $CFG, $dbtablename, $fieldname, $recordid;
+    global $CFG, $dbtablename, $fieldname, $record;
     if ($CFG->debug>7) {
-        echo "<br />Problem converting: $dbtablename -> $fieldname -> $recordid!";
+        echo "<br />Problem converting: $dbtablename -> $fieldname -> {$record->id}!";
     }
 }