MDL-14679 fixed some more $db's
This commit is contained in:
+1
-1
@@ -194,7 +194,7 @@ function my_file_get_contents($filename, $use_include_path = 0) {
|
||||
// Read the records from the given file.
|
||||
// Perform a simple field count check for each record.
|
||||
function data_get_records_csv($filename, $fielddelimiter=',', $fieldenclosure="\n") {
|
||||
global $db;
|
||||
global $DB;
|
||||
|
||||
if (empty($fielddelimiter)) {
|
||||
$fielddelimiter = ',';
|
||||
|
||||
@@ -321,8 +321,7 @@ function data_content_restore_mods ($old_record_id, $new_record_id, $old_data_id
|
||||
|
||||
|
||||
function data_restore_files ($old_data_id, $new_data_id, $old_field_id, $new_field_id, $old_record_id, $new_record_id, $recinfo, $restore) {
|
||||
|
||||
global $CFG, $db;
|
||||
global $CFG, $DB;
|
||||
|
||||
$status = true;
|
||||
$todo = false;
|
||||
|
||||
Reference in New Issue
Block a user