@@ -1067,9 +1067,11 @@ discard block |
||
1067 | 1067 | $delimiter = ''; |
1068 | 1068 | $field_names = ['pl_level', 'pl_long', 'pl_lati', 'pl_zoom', 'pl_icon', 'fqpn']; |
1069 | 1069 | |
1070 | - if ($serverfile !== '') { // first choice is file on server |
|
1070 | + if ($serverfile !== '') { |
|
1071 | +// first choice is file on server |
|
1071 | 1072 | $filename = WT_MODULES_DIR . $this->getName() . '/extra/' . $serverfile; |
1072 | - } elseif ($_FILES['localfile']['error'] === UPLOAD_ERR_OK) { // 2nd choice is local file |
|
1073 | + } elseif ($_FILES['localfile']['error'] === UPLOAD_ERR_OK) { |
|
1074 | +// 2nd choice is local file |
|
1073 | 1075 | $filename = $_FILES['localfile']['tmp_name']; |
1074 | 1076 | } |
1075 | 1077 | |
@@ -1090,7 +1092,8 @@ discard block |
||
1090 | 1092 | $delimiter = ','; |
1091 | 1093 | } |
1092 | 1094 | if ($delimiter !== '') { |
1093 | - if (!is_numeric($record[0])) { // lose the header |
|
1095 | + if (!is_numeric($record[0])) { |
|
1096 | +// lose the header |
|
1094 | 1097 | array_shift($input_array); |
1095 | 1098 | } |
1096 | 1099 |