Skip to content

Commit

Permalink
Showing user id on output is probably not a good idea.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Jan 19, 2024
1 parent fa913b1 commit 8be15fe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions classes/toolbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ public function setup_displayed_image($sectionimage, $sectionfile, $courseid, $s
'filemime' => $sectionfile->get_mimetype(),
'filesize' => $sectionfile->get_filesize(),
'sectionid' => $sectionid,
'userid' => $sectionfile->get_userid(),
];
$data = self::generate_image(
$tmpfilepath,
Expand Down Expand Up @@ -640,12 +639,11 @@ private static function generate_image($filepath, $requestedwidth, $requestedhei
}

private static function debugdata_decode($debugdata) {
$o = 'id: ' . $debugdata['item'];
$o .= 'itemid: ' . $debugdata['itemid'];
$o = 'Files table id: ' . $debugdata['id'];
$o .= ', itemid: ' . $debugdata['itemid'];
$o .= ', filename: ' . $debugdata['filename'];
$o .= ', filemime: ' . $debugdata['filemime'];
$o .= ', filesize: ' . $debugdata['filesize'];
$o .= ', creator user id: ' . $debugdata['userid'];
$o .= ' and sectionid: ' . $debugdata['sectionid'] . '. ';
$o .= get_string('reporterror', 'format_grid');
return $o;
Expand Down

0 comments on commit 8be15fe

Please sign in to comment.