Skip to content

Commit

Permalink
Rename table download file names
Browse files Browse the repository at this point in the history
  • Loading branch information
justusdieckmann authored and Laur0r committed May 16, 2023
1 parent bdfe725 commit cba9dcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/allocations_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct($ratingallocate) {
$this->ratingallocate = $ratingallocate;
if (has_capability('mod/ratingallocate:export_ratings', $ratingallocate->get_context())) {
$download = optional_param('download', '', PARAM_ALPHA);
$this->is_downloading($download, $ratingallocate->ratingallocate->name, 'Testsheet');
$this->is_downloading($download, $ratingallocate->ratingallocate->name . '-allocations', 'allocations');
}
}

Expand Down
2 changes: 1 addition & 1 deletion classes/ratings_and_allocations_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function __construct(\mod_ratingallocate_renderer $renderer, $titles, $ra
$this->ratingallocate = $ratingallocate;
if ($downloadable && has_capability('mod/ratingallocate:export_ratings', $ratingallocate->get_context())) {
$download = optional_param('download', '', PARAM_ALPHA);
$this->is_downloading($download, 'Test', 'Testsheet');
$this->is_downloading($download, $ratingallocate->ratingallocate->name . '-ratings_and_allocations', 'ratings_and_allocations');
}

$this->shownames = true;
Expand Down

0 comments on commit cba9dcd

Please sign in to comment.