From 8be15fe64705dcabcf5ac3264731d6a7fa481b14 Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Fri, 19 Jan 2024 11:47:33 +0000 Subject: [PATCH] Showing user id on output is probably not a good idea. --- classes/toolbox.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/classes/toolbox.php b/classes/toolbox.php index 6f7f0d0d..9176a1bd 100644 --- a/classes/toolbox.php +++ b/classes/toolbox.php @@ -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, @@ -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;