question export NOBUG delete obsolete code.

This commit is contained in:
Tim Hunt 2010-11-19 12:16:23 +00:00
parent fe857668d4
commit 4ec6d4e692

View file

@ -1,17 +0,0 @@
<?php
require_once(dirname(__FILE__) . '/../config.php');
require_once($CFG->libdir . '/filelib.php');
// Note: file.php always calls require_login() with $setwantsurltome=false
// in order to avoid messing redirects. MDL-14495
require_login(0, true, null, false);
$relativepath = get_file_argument();
if (!$relativepath) {
print_error('invalidarg', 'question');
}
$pathname = $CFG->dataroot . '/temp/questionexport/' . $USER->id . '/' . $relativepath;
send_temp_file($pathname, $relativepath);