Kaynağa Gözat

Quiz: Fix regression in hotspot image upload introduced in d8fdd1f410cdcc8fcce7580d677f4045475ec267

Yannick Warnier 5 yıl önce
ebeveyn
işleme
23bad83a74
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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);