MDL-70326 antivirus: fixing regression in MDL-66222
authorJordan Tomkinson <jordan.tomkinson@gmail.com>
Wed, 25 Nov 2020 10:28:56 +0000 (11:28 +0100)
committerJordan Tomkinson <jordan.tomkinson@gmail.com>
Wed, 25 Nov 2020 10:28:56 +0000 (11:28 +0100)
lib/classes/antivirus/scanner.php

index 462684f..c12d6a5 100644 (file)
@@ -25,7 +25,7 @@
 namespace core\antivirus;
 
 defined('MOODLE_INTERNAL') || die();
-require_once(__DIR__ . '../../../../iplookup/lib.php');
+require_once($CFG->dirroot . '/iplookup/lib.php');
 
 /**
  * Base abstract antivirus scanner class.