Skip to content

Commit

Permalink
Merge branch 'MDL-36652' of https://github.com/rushi963/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 1, 2016
2 parents 6770a4b + 36a2d81 commit 192bce5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions report/log/classes/renderable.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,12 @@ public function setup_table() {
*/
public function download() {
$filename = 'logs_' . userdate(time(), get_string('backupnameformat', 'langconfig'), 99, false);
if ($this->course->id !== SITEID) {
$courseshortname = format_string($this->course->shortname, true,
array('context' => context_course::instance($this->course->id)));
$filename = clean_filename('logs_' . $courseshortname . '_' . userdate(time(),
get_string('backupnameformat', 'langconfig'), 99, false));
}
$this->tablelog->is_downloading($this->logformat, $filename);
$this->tablelog->out($this->perpage, false);
}
Expand Down

0 comments on commit 192bce5

Please sign in to comment.