### Eclipse Workspace Patch 1.0 #P test Index: csvlib.class.php =================================================================== --- csvlib.class.php (revision 17) +++ csvlib.class.php (working copy) @@ -205,6 +205,7 @@ * @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; @@ -219,6 +220,7 @@ * @return char delimiter char */ function get_delimiter($delimiter_name) { + global $CFG; switch ($delimiter_name) { case 'colon': return ':'; case 'semicolon': return ';';