Commit d52e5dd3 authored by David Herney's avatar David Herney Committed by jun
Browse files

MDL-60443 dataformat lib: Change a wrong variable name

The variable $type really is $dataformat. I have changed it for
prevent the error and show a correct error message.
parent f0131127
......@@ -44,7 +44,7 @@ function download_as_dataformat($filename, $dataformat, $columns, $iterator, $ca
$classname = 'dataformat_' . $dataformat . '\writer';
if (!class_exists($classname)) {
throw new coding_exception("Unable to locate dataformat/$type/classes/writer.php");
throw new coding_exception("Unable to locate dataformat/$dataformat/classes/writer.php");
$format = new $classname;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment