fixed a few spelling errors in /admin/
This commit is contained in:
@@ -258,7 +258,7 @@ class csv_import_reader {
|
||||
*
|
||||
* @return array suitable for selection box
|
||||
*/
|
||||
function get_delimiter_list() {
|
||||
static 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)) {
|
||||
@@ -273,7 +273,7 @@ class csv_import_reader {
|
||||
* @param string separator name
|
||||
* @return string delimiter char
|
||||
*/
|
||||
function get_delimiter($delimiter_name) {
|
||||
static function get_delimiter($delimiter_name) {
|
||||
global $CFG;
|
||||
switch ($delimiter_name) {
|
||||
case 'colon': return ':';
|
||||
|
||||
Reference in New Issue
Block a user