Browse Source

Quiz: Fix regression in hotspot image upload introduced in d8fdd1f410cdcc8fcce7580d677f4045475ec267

Yannick Warnier 5 năm trước cách đây
mục cha
commit
23bad83a74
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);