34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
$columns[$key] = $config->title;
}
$csv->setColumns($columns);
if (f('cancel')) {
$csv->clear();
Utils::redirect(Utils::getSelfURL(false));
}
$form->runIf(f('import') && $csv->loaded(), function () use ($csv, $import, $user) {
$csv->setTranslationTable(f('translation_table'));
$csv->skip((int)f('skip_first_line'));
$import->fromCustomCSV($csv, $user->id);
$csv->clear();
|
|
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
$columns[$key] = $config->title;
}
$csv->setColumns($columns);
if (f('cancel')) {
$csv->clear();
Utils::redirect(Utils::getSelfURI(false));
}
$form->runIf(f('import') && $csv->loaded(), function () use ($csv, $import, $user) {
$csv->setTranslationTable(f('translation_table'));
$csv->skip((int)f('skip_first_line'));
$import->fromCustomCSV($csv, $user->id);
$csv->clear();
|