|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | core |
Enumerations | |
| enum | NO_DEBUG_DISPLAY |
Variables | |
| $forcedownload = optional_param('forcedownload', 0, PARAM_BOOL) | |
| if(!$relativepath) else if($relativepath{0}!= '/') | $args = explode('/', ltrim($relativepath, '/')) |
| if(count($args)==0) | $courseid = (int)array_shift($args) |
| $relativepath = implode('/', $args) | |
| $course = $DB->get_record('course', array('id'=>$courseid), '*', MUST_EXIST) | |
| if($course->legacyfiles!=2) if($course-> id!=SITEID) else if($CFG-> forcelogin) | $context = get_context_instance(CONTEXT_COURSE, $course->id) |
| $fs = get_file_storage() | |
| $fullpath = "/$context->id/course/legacy/0/$relativepath" | |
| enum NO_DEBUG_DISPLAY |
| $course = $DB->get_record('course', array('id'=>$courseid), '*', MUST_EXIST) |
| $forcedownload = optional_param('forcedownload', 0, PARAM_BOOL) |
| $fs = get_file_storage() |