Skip to content
Permalink
Browse files

MDL-29689 Assignment 2.2: cleaned print_responsefiles function

  • Loading branch information...
Rajesh Taneja
Rajesh Taneja committed Oct 3, 2012
1 parent deba4dc commit 17bf85dee3b1b91ec1b8294d77a08b7f06efd46f
@@ -355,19 +355,10 @@ function count_real_submissions($groupid=0) {
}
function print_responsefiles($userid, $return=false) {
global $CFG, $USER, $OUTPUT, $PAGE;
$mode = optional_param('mode', '', PARAM_ALPHA);
$offset = optional_param('offset', 0, PARAM_INT);
global $OUTPUT, $PAGE;
$output = $OUTPUT->box_start('responsefiles');
$candelete = $this->can_manage_responsefiles();
$strdelete = get_string('delete');
$fs = get_file_storage();
$browser = get_file_browser();
if ($submission = $this->get_submission($userid)) {
$renderer = $PAGE->get_renderer('mod_assignment');
$output .= $renderer->assignment_files($this->context, $submission->id, 'response');
@@ -149,24 +149,15 @@ function count_real_submissions($groupid=0) {
}
function print_responsefiles($userid, $return=false) {
global $CFG, $USER, $OUTPUT, $PAGE;
$mode = optional_param('mode', '', PARAM_ALPHA);
$offset = optional_param('offset', 0, PARAM_INT);
global $OUTPUT, $PAGE;
$output = $OUTPUT->box_start('responsefiles');
$candelete = $this->can_manage_responsefiles();
$strdelete = get_string('delete');
$fs = get_file_storage();
$browser = get_file_browser();
if ($submission = $this->get_submission($userid)) {
$renderer = $PAGE->get_renderer('mod_assignment');
$output .= $renderer->assignment_files($this->context, $submission->id, 'response');
$output .= $OUTPUT->box_end();
}
$output .= $OUTPUT->box_end();
if ($return) {
return $output;

0 comments on commit 17bf85d

Please sign in to comment.
You can’t perform that action at this time.