From d2d38c4651289b80d8052459e7270ba42449a229 Mon Sep 17 00:00:00 2001 From: Aparup Banerjee Date: Thu, 2 Sep 2010 06:34:48 +0000 Subject: [PATCH] lib MDL-23180 put in obviously missed global $CFG. --- lib/csvlib.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/csvlib.class.php b/lib/csvlib.class.php index 691bad52494..d81a46848a0 100644 --- a/lib/csvlib.class.php +++ b/lib/csvlib.class.php @@ -259,6 +259,7 @@ class csv_import_reader { * @return array suitable for selection box */ function get_delimiter_list() { + global $CFG; $delimiters = array('comma'=>',', 'semicolon'=>';', 'colon'=>':', 'tab'=>'\\t'); if (isset($CFG->CSV_DELIMITER) and strlen($CFG->CSV_DELIMITER) === 1 and !in_array($CFG->CSV_DELIMITER, $delimiters)) { $delimiters['cfg'] = $CFG->CSV_DELIMITER; @@ -273,6 +274,7 @@ class csv_import_reader { * @return string delimiter char */ function get_delimiter($delimiter_name) { + global $CFG; switch ($delimiter_name) { case 'colon': return ':'; case 'semicolon': return ';';