mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'w38_MDL-29401_m22_frankenstyle' of git://github.com/skodak/moodle
This commit is contained in:
commit
e135797586
50 changed files with 267 additions and 142 deletions
|
@ -31,8 +31,8 @@ require_once($CFG->dirroot . '/repository/lib.php');
|
|||
$contextid = required_param('contextid', PARAM_INT);
|
||||
$currentcontext = required_param('currentcontext', PARAM_INT);
|
||||
// file parameters
|
||||
$component = optional_param('component', null, PARAM_ALPHAEXT);
|
||||
$filearea = optional_param('filearea', null, PARAM_ALPHAEXT);
|
||||
$component = optional_param('component', null, PARAM_COMPONENT);
|
||||
$filearea = optional_param('filearea', null, PARAM_AREA);
|
||||
$returnurl = optional_param('returnurl', null, PARAM_URL);
|
||||
|
||||
list($context, $course, $cm) = get_context_info_array($currentcontext);
|
||||
|
|
|
@ -33,8 +33,8 @@ $filecontextid = optional_param('filecontextid', 0, PARAM_INT);
|
|||
$action = optional_param('action', '', PARAM_ALPHA);
|
||||
// file parameters
|
||||
// non js interface may require these parameters
|
||||
$component = optional_param('component', null, PARAM_ALPHAEXT);
|
||||
$filearea = optional_param('filearea', null, PARAM_ALPHAEXT);
|
||||
$component = optional_param('component', null, PARAM_COMPONENT);
|
||||
$filearea = optional_param('filearea', null, PARAM_AREA);
|
||||
$itemid = optional_param('itemid', null, PARAM_INT);
|
||||
$filepath = optional_param('filepath', null, PARAM_PATH);
|
||||
$filename = optional_param('filename', null, PARAM_FILE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue