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;