Skip to content

Commit

Permalink
"MDL-13766, fixed context default value"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Mar 16, 2010
1 parent 8e0946b commit d10c92f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion repository/filepicker.php
Expand Up @@ -39,7 +39,7 @@

// general parameters
$action = optional_param('action', '', PARAM_ALPHA);
$client_id = optional_param('client_id', SITEID, PARAM_RAW); // client ID
$client_id = optional_param('client_id', '', PARAM_RAW); // client ID
$itemid = optional_param('itemid', '', PARAM_INT);

// parameters for repository
Expand Down
4 changes: 2 additions & 2 deletions repository/repository_ajax.php
Expand Up @@ -36,8 +36,8 @@
$action = optional_param('action', '', PARAM_ALPHA);
$repo_id = optional_param('repo_id', 1, PARAM_INT); // repository ID
$callback = optional_param('callback', '', PARAM_CLEANHTML);
$client_id = optional_param('client_id', SITEID, PARAM_RAW); // client ID
$contextid = optional_param('ctx_id', SITEID, PARAM_INT); // context ID
$client_id = optional_param('client_id', '', PARAM_RAW); // client ID
$contextid = optional_param('ctx_id', SYSCONTEXTID, PARAM_INT); // context ID
$env = optional_param('env', 'filepicker', PARAM_ALPHA); // opened in editor or moodleform
$file = optional_param('file', '', PARAM_RAW); // file to download
$itemid = optional_param('itemid', 0, PARAM_INT);
Expand Down

0 comments on commit d10c92f

Please sign in to comment.