MDL-79863 qtype_ordering: Moodle.2x qtype/ordering replace __DIR__ with dirname(__FILE__) for compatability with PHP 5.2

This commit is contained in:
Gordon Bateson
2024-04-04 10:59:15 +08:00
committed by Mathew May
parent 6319c85c94
commit ec11f84b84
+1 -1
View File
@@ -30,7 +30,7 @@ if (class_exists('question_type')) {
$register_questiontype = false;
} else {
$register_questiontype = true; // Moodle 2.0
require_once(__DIR__.'/legacy/20.php');
require_once(dirname(__FILE__).'/legacy/20.php');
}
/**