Merge branch 'MDL-50887-master' of https://github.com/lucisgit/moodle
[moodle.git] / repository / upload / lib.php
index 5b3675b..2f14477 100644 (file)
@@ -141,7 +141,7 @@ class repository_upload extends repository {
             }
         }
 
-        self::antivir_scan_file($_FILES[$elname]['tmp_name'], $_FILES[$elname]['name'], true);
+        \core\antivirus\manager::scan_file($_FILES[$elname]['tmp_name'], $_FILES[$elname]['name'], true);
 
         // {@link repository::build_source_field()}
         $sourcefield = $this->get_file_source_info($_FILES[$elname]['name']);