Browse Source

Quiz: Fix regression in hotspot image upload introduced in d8fdd1f410cdcc8fcce7580d677f4045475ec267

Yannick Warnier 5 years ago
parent
commit
23bad83a74
1 changed files with 1 additions and 1 deletions
  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);