MDL-14679 fixed some more $db's

This commit is contained in:
skodak
2008-05-31 22:18:41 +00:00
parent 98891b9348
commit fd0e6640cc
18 changed files with 29 additions and 33 deletions
+1 -1
View File
@@ -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 = ',';
+1 -2
View File
@@ -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;