Gitlab CSE Unil

Commit 8256f616 authored by M. Chardon's avatar M. Chardon
Browse files

correction bug chargement pdf

parent 5b14f4fe
...@@ -267,7 +267,7 @@ EOD; ...@@ -267,7 +267,7 @@ EOD;
} }
$contextid = $assignment->get_context()->id; $contextid = $assignment->get_context()->id;
$component = 'assignfeedback_editpdf'; $component = 'assignfeedback_editpdfplus';
$filearea = self::COMBINED_PDF_FILEAREA; $filearea = self::COMBINED_PDF_FILEAREA;
$itemid = $grade->id; $itemid = $grade->id;
$filepath = '/'; $filepath = '/';
......
...@@ -609,7 +609,7 @@ class pdf extends \FPDI { ...@@ -609,7 +609,7 @@ class pdf extends \FPDI {
global $CFG; global $CFG;
//$temparea = make_temp_directory('assignfeedback_editpdfplus'); //$temparea = make_temp_directory('assignfeedback_editpdfplus');
$temparea = make_temp_directory(); $temparea = make_request_directory();
//$hash = $file->get_contenthash(); // Use the contenthash to make sure the temp files have unique names. //$hash = $file->get_contenthash(); // Use the contenthash to make sure the temp files have unique names.
//$tempsrc = $temparea . "/src-$hash.pdf"; //$tempsrc = $temparea . "/src-$hash.pdf";
//$tempdst = $temparea . "/dst-$hash.pdf"; //$tempdst = $temparea . "/dst-$hash.pdf";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment