MDL-46504 libraries: Fixing typo

This commit is contained in:
David Monllao
2014-07-24 11:15:36 +08:00
parent ec36fafc0f
commit 03bdb0a7c2
+1 -1
View File
@@ -104,7 +104,7 @@ class csv_import_reader {
// Create a temporary file and store the csv file there,
// do not try using fgetcsv() because there is nothing
// to split rows properly - fgetcsv() itself can not do it.
$tempfile = tempnam(make_temp_directory('/cvsimport'), 'tmp');
$tempfile = tempnam(make_temp_directory('/csvimport'), 'tmp');
if (!$fp = fopen($tempfile, 'w+b')) {
$this->_error = get_string('cannotsavedata', 'error');
@unlink($tempfile);