소스 검색

Quiz: Fix regression in hotspot image upload introduced in d8fdd1f410cdcc8fcce7580d677f4045475ec267

Yannick Warnier 5 년 전
부모
커밋
23bad83a74
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main/exercise/hotspot.class.php

+ 1 - 1
main/exercise/hotspot.class.php

@@ -81,7 +81,7 @@ class HotSpot extends Question
         parent::processCreation($form, $exercise);
 
         if (!empty($fileInfo['tmp_name'])) {
-            $result = $this->uploadPicture($fileInfo);
+            $result = $this->uploadPicture($fileInfo['tmp_name']);
             if ($result) {
                 $this->save($exercise);