mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
question export NOBUG delete obsolete code.
This commit is contained in:
parent
fe857668d4
commit
4ec6d4e692
1 changed files with 0 additions and 17 deletions
|
@ -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);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue