Skip to content

Commit

Permalink
"MDL-23917, move action parameter above"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Aug 25, 2010
1 parent 4f51f6f commit 18fb4d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion comment/comment_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
$PAGE->set_context($context);
$PAGE->set_url('/comment/comment_ajax.php');

$action = optional_param('action', '', PARAM_ALPHA);

// XXX: display comments in frontpage without login
if ($context->id != get_context_instance(CONTEXT_COURSE, SITEID)->id
or $action == 'add'
Expand All @@ -37,7 +39,6 @@
}
require_sesskey();

$action = optional_param('action', '', PARAM_ALPHA);
$area = optional_param('area', '', PARAM_ALPHAEXT);
$client_id = optional_param('client_id', '', PARAM_RAW);
$commentid = optional_param('commentid', -1, PARAM_INT);
Expand Down

0 comments on commit 18fb4d7

Please sign in to comment.