Skip to content

Commit

Permalink
fix compilatio to work with new Magister's API SOAP v5 -refs BT#20221
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoDucou committed Jan 3, 2023
1 parent ebe7399 commit 949c393
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/plagiarism/compilatio/upload.php
Expand Up @@ -78,6 +78,7 @@
/*we verify that the docmuent's id is an hash_md5*/
if (Compilatio::isMd5($compilatioId)) {
$compilatio->saveDocument($courseId, $doc->id, $compilatioId);
sleep(10);
$soapRes = $compilatio->startAnalyse($compilatioId);
}
}
Expand Down Expand Up @@ -133,6 +134,7 @@ function sendDocument($documentId, $courseInfo)

if (Compilatio::isMd5($compilatioId)) {
$compilatio->saveDocument($courseId, $doc->id, $compilatioId);
sleep(10);
$compilatio->startAnalyse($compilatioId);
echo Display::return_message(get_lang('Uploaded'));
} else {
Expand Down

0 comments on commit 949c393

Please sign in to comment.